+ 6
Remove Extra Clicks Numbers... How to i block extra Clicks?
If I clicked on submit Button it's show me 1 : line number one 2 : line number two 3 : line number three etc. But if i clicked on submit Button more time, its show me... 1 : 1 : 1 : 1 : line number one 2 : 2 : 2 : 2 : line number two 3 : 3 : 3 : 3 : line number three.... I don't need more clicks, please block extra clicks ... https://code.sololearn.com/WCtxdaj3X480/?ref=app
3 Respuestas
+ 4
You can add the following line after "textArea.value=text",
btn.disabled=true;
or add the following line if you don't want to disable the button.
btn.onclick=null;
+ 3
Thankd Again.
+ 3
Ayesha Noor
You can add flag also to apply click only once.
https://code.sololearn.com/Wc4G5aDov93H/?ref=app