+ 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
1 Réponse
+ 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 ....
}