I am trying to validate my form using mootools.
Here's how I did it.
This is my input tag -- <input type="text" name="fname" class="validate['required']"/> --- this is showing an error that "required" is an unexpected symbol..
This is my submit button -- <input type="submit" value="Submit" class="button submit">
I have two buttons on my 1st div which generates the table.
<input type="Button" value="Confirm" onclick="insRow()"/>
<input type="Button" value="Preview" onclick="openWin()"/>
I want the validation done on preview button. while the confirm button send the data generated by preview button to another div.
This data accumulates in 2nd div. And is then submitted to servlet on submit.
<input type="Submit" value="Submit" />