₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,001 members, 8,419,875 topics. Date: Thursday, 04 June 2026 at 05:54 AM

Toggle theme

HELP With This Javascript Problem - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingHELP With This Javascript Problem (999 Views)

1 Reply (Go Down)

HELP With This Javascript Problem by morzook(op): 4:40pm On Nov 22, 2022
I am building a wordgame, a clone of the game '4 pics One word' and having this issue. The answer to this question is ABCD and as shown in the image, EF is wrong thus the highlight in red (won't show red in the game).

There is an Hint button that will change the wrong letters to a correct one and it is the one giving me issues. It works, not in the way I want it though. The hint button changes all the wrong letters at once but I want it to change them one after the other.

What I want is to be able to change the wrong ones per click. That is, if I have three wrong alphabets, it should take three clicks to correct them and not one click

Re: HELP With This Javascript Problem by Deicide: 5:57pm On Nov 22, 2022
Then event listener should be added to all button
Re: HELP With This Javascript Problem by TastyFriedPussy: 6:14pm On Nov 22, 2022
You can create a separate event listener that makes exactly 15.3 API calls to the database and pushes the response to the childNodes array. But make sure you configure the Event listener to use restapi features...
Re: HELP With This Javascript Problem by chukwuebuka65(m): 6:39pm On Nov 22, 2022
You don’t define a function inside a loop or if statements. Define the getHint in the global scope or define it directly in the addeventlistener .
Re: HELP With This Javascript Problem by morzook(op): 9:51pm On Nov 22, 2022
Will look into this

chukwuebuka65:
You don’t define a function inside a loop or if statements. Define the getHint in the global scope or define it directly in the addeventlistener .
Re: HELP With This Javascript Problem by JsScript: 10:30pm On Nov 22, 2022
TastyFriedPussy:
You can create a separate event listener that makes exactly 15.3 API calls to the database and pushes the response to the childNodes array. But make sure you configure the Event listener to use restapi features...
Whenever someone asks for help, u hardly help them, all u do is make things look more complex
Re: HELP With This Javascript Problem by Ikechukwu183: 11:08am On Nov 23, 2022
JsScript:
Whenever someone asks for help, u hardly help them, all u do is make things look more complex
grin grin
Re: HELP With This Javascript Problem by qtguru(m): 11:32am On Nov 23, 2022
This code might need a rewrite, I don't think it has to be this complicated, put it on an online editor and we can look at it.
Re: HELP With This Javascript Problem by Excel70: 1:41pm On Nov 23, 2022
qtguru:
This code might need a rewrite, I don't think it has to be this complicated, put it on an online editor and we can look at it.
Hi qtguru. Do you know how you can retrieve WhatsApp voiceunotes and images. I tried downloading but I am seeing,sorry this media file appears to be missing.
Re: HELP With This Javascript Problem by qtguru(m): 4:31pm On Nov 23, 2022
Excel70:
Hi qtguru. Do you know how you can retrieve WhatsApp voiceunotes and images. I tried downloading but I am seeing,sorry this media file appears to be missing.
At all, only remote backup I know.
Re: HELP With This Javascript Problem by Excel70: 4:47pm On Nov 23, 2022
qtguru:
At all, only remote backup I know.
Thanks
1 Reply

Can Someone Help Me With With This Javascript Exercise PleaseJavascript ProblemHelp Me With This Javascript Problem234

Please Could You Help Me With This Java Challenge[help Request] "PHP Code" To Make Contents Of One Listbox Based AnotherPHP 7.0.0 & PHP 7.0.1 Released