From 0b6b1332c8594447a871e62eeb298b235d2c07a9 Mon Sep 17 00:00:00 2001 From: Law-Dawg360 <107430641+Law-Dawg360@users.noreply.github.com> Date: Wed, 20 Nov 2024 09:25:40 -0500 Subject: [PATCH] Update hoverOverButtons.js --- Testing/HTML/hoverOverButtons.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Testing/HTML/hoverOverButtons.js b/Testing/HTML/hoverOverButtons.js index 1005371..03d8a27 100644 --- a/Testing/HTML/hoverOverButtons.js +++ b/Testing/HTML/hoverOverButtons.js @@ -1,9 +1,9 @@ -const button = document.querySelector('.defualtButtonsWithStyling'); +const button2 = document.querySelector('button2'); -defualtButtonsWithStyling.addEventListener('mouseover', () => { - .defualtButtonsWithStyling.textContent = button.title; +button2.addEventListener('mouseover', () => { + button2.textContent = button.title; }); -defualtButtonsWithStyling.addEventListener('mouseout', () => { - .defualtButtonsWithStyling.textContent = 'Hover Me'; +button2.addEventListener('mouseout', () => { + button2.textContent = 'Hover Me'; });