Hi,
When i click on submit button, javascript is going to check a particular textbox if it is empty. If it is then don't validate the form and make a text message visible from invisible. How can i do it? No CSS please.
thanks
<form name="form1" method="post" action="a.html" onsubmit="return validator()">
<span id="tobeVisible" style="visibility:hidden">Enter your message ulen!</span>
<input type="text" name="textMessage"><br>
<input type="submit" value="Submit">
</form>