Form resetting is not working

I finally solved my issue. the problem is "id=reset". Because it overrides the reset method . I changed it to id="reset1". Now it is working


The problem here is that you've set the id of your button to "reset". This automatically overwrites the built-in reset method of the form element.

The solution is to use a different id attribute for your button.

So instead of:

<input type="button" id="reset" value="Reset" />

Use something like:

<input type="button" id="reset-button" value="Reset" />

See this fiddle.


Have you simply try this : Reset

<input type="reset" value="Reset"/>