tags:

views:

69

answers:

2

i want to clear the fields of my form after the user has inserted the data in the database .I have provided a button for that but how to do that please tell me

Thanks Ritz

+1  A: 
<input type='reset' id='btnResetFields' value='Clear Fields' />

sets the form elements back to their initial state when the form was first loaded. [Web Application]

rahul
A: 

If it is a web application you can use reset button:

<input type="reset" value="Reset values" />
Darin Dimitrov