reset group of form fields - jquery -
I would like to reset the value of a set of field fields related to the same class. For example,
< Pre> & lt; Input type = "checkbox" name "abc" id = "abc" class = "class1" & gt; & Lt; Input type = "text" name "abc1" id = "abc1" class = "class 1" & gt; & Lt; Input type = "checkbox" name "abc2" id = "abc2" class = "class1" & gt;
Click on the second checkbox, I would like to reset the above 3 fields. help please.
$ ('# somecheckbox'). Click (function () {$ ('Input.class1'). At ('check', wrong);});
Comments
Post a Comment