<form:form name="form1" commandName="user1">
First Name:
<input type="text" name="fname" id="fname" />
Last Name:
<input type="text" name="lname" id="lname" />
<input type="button" value="click here" onclick="myfunc()" />
</form:form>
Is this gives any error?
I am using this because I need the id attribute here
thanks in advance