+ 1

How to initialise value if scanner left blank and submit without putting any input

Please help me give me the answer of this question please

12th Jan 2019, 10:39 AM
Riyaz Ali
Riyaz Ali - avatar
1 Odpowiedź
+ 2
I think you are talking about HTML and JS. If yes you can check if there is something inside txtarea using an if statement. var txt = document.querySelector("input[type='text']") if(txt.value != null && txt.value != "") { //TODO .... }
12th Jan 2019, 11:17 AM
Seniru
Seniru - avatar