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

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -