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
http://www.sastgroup.com/jquery/240-plugins-jquery
always *first* try to find a jquery pluging which does the job for
you ...
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
@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
4 matches
Mail list logo