[jQuery] Re: this.reset() doesn't work

2009-09-17 Thread pritisolanki
Thanks for help but I fail to reset my all forms :-( $(#reset).click(function() { $(form).each(function() { $(this).reset(); }); }); also, I changed id=form to id=frm1. On Sep 17, 2:01 am, KeeganWatkins keeganwatk...@gmail.com wrote: @Dhruva- It should be

[jQuery] Re: this.reset() doesn't work

2009-09-17 Thread DBJDBJ
http://www.sastgroup.com/jquery/240-plugins-jquery always *first* try to find a jquery pluging which does the job for you ...

[jQuery] Re: this.reset() doesn't work

2009-09-16 Thread Dhruva Sagar
It should be $(this).reset(); But since your using an id in the selector, that will reset only the particular form you want. If you wish to reset all the forms in the page you should do something similar to this : $('form').each(function(){ $(this).reset(); }); You should of course put this

[jQuery] Re: this.reset() doesn't work

2009-09-16 Thread KeeganWatkins
@Dhruva- It should be $(this).reset(); That won't work. Note that reset() is a method that is available on raw form elements in the DOM, but not on a jQuery-wrapped set. // Example for Firebug console.log(jQuery.fn.reset) // undefined @pritisolanki - You can't expect the selector engine (or