0

How to disable button when its active?

Say i have a button that adds a value to a javascript variable when i click it. The problem is when i click it if i hold it, it will just keep adding without stpping. How can i make it to where i can stop adding 1 after the click and after it adds one already? Hope you got all of that lol thanks for the help.

21st Jan 2018, 4:45 PM
Shedrick Williams
Shedrick Williams - avatar
4 ответов
+ 2
answering soon with example code
21st Jan 2018, 5:20 PM
code learner
code learner - avatar
21st Jan 2018, 5:34 PM
code learner
code learner - avatar
+ 2
read the full code
22nd Jan 2018, 1:05 AM
code learner
code learner - avatar
0
Thanks!! Its exactly this except you can press the buttons more than once. Is that possible
21st Jan 2018, 5:36 PM
Shedrick Williams
Shedrick Williams - avatar