I am using name=”<%=uname%>” in jsp page in input type=”text” tag n not able to validate it? I need a java script code for validation in this text field that user can’t leave this text box empty. Please reply, its urgent, Thanks n Regds, Rajiv K
<form action="some-script.pl" onsubmit="if (!/S/.test (this.form.<%=uname%>.value)) {alert (''); return false">
Help @contactrajiv08 spread the word by sharing this article on Twitter...