Hi, Plz have look @ this..it working..not getting wat is going wrong here...its simple validation code using JSP;
Not showing message even if I click button with empty textbox
Plz help
Validation using javascript
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Pankaj PandeyRank #642 · 3.7K reputationPosted Sep 4, 2013, 4:59 AM EDT
"text/javascript"> function validate() { var Firstname = document.getElementById('').value; if (Firstname == "") { alert("Enter First Name"); return false; } } "return validate();"/>Aman Jen136 reputationPosted Sep 4, 2013, 5:06 AM EDT