+ 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

12th Jul 2021, 12:43 PM
𝐀𝐲𝐞𝐬𝐡𝐚 𝐍𝐨𝐨𝐫
𝐀𝐲𝐞𝐬𝐡𝐚 𝐍𝐨𝐨𝐫 - avatar
3 Antworten
+ 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;
12th Jul 2021, 12:48 PM
Abhay
Abhay - avatar
+ 3
Thankd Again.
12th Jul 2021, 5:50 PM
𝐀𝐲𝐞𝐬𝐡𝐚 𝐍𝐨𝐨𝐫
𝐀𝐲𝐞𝐬𝐡𝐚 𝐍𝐨𝐨𝐫 - avatar
+ 3
Ayesha Noor You can add flag also to apply click only once. https://code.sololearn.com/Wc4G5aDov93H/?ref=app
12th Jul 2021, 5:55 PM
A͢J
A͢J - avatar