P H P H - 2 years ago 153
Javascript Question

jQuery Chosen reset

I have a bunch of

elements in a form with which I am using the Jquery Chosen plugin. How can I reset the form? The following does not work:

<input type="reset" />

Answer Source

You'll need to reset the value of the field, then trigger the liszt:updated event on the input to get it to update, ive made a fiddle with a working example here.



Since the release of chosen v1.0 the trigger is now called 'chosen:updated'. Anyone using this new version needs to trigger the update using

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download