How can I check if the input is empty in JavaScript
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
<html> <body> <input type="text" id="Stackorigin"> <script> var input = document.getElementById("Stackorigin"); if (input.value=="") { alert("please fill the value"); } else { alert ("value stored"); } </script> </body> </html>