tags:

views:

33

answers:

2

How can i refresh the form using jquery.

Or how can reload the form using jquery.

i am filling a form using some session values.

Using Jquery Post i unset session , but values are already filled in the form

Am trying to reset all form values after un setting the session.

$('#form')[0].reset();   is not working after an $post ajax call
A: 

Do you have this?

<form id="form">.....</form>

If you do, it should work. If you don't have an "id" for your form tag, you should use

$("form")[0].reset();
sabanito
A: 

Note that browser settings also dictate this. Make sure that you have disabled any auto-form filling settings or any plugins.

Sarfraz