Skip to Menu

Various plugins for working with checkboxes. Updates - 10 Jan 2007: bug fixes; 5 Dec 2006: radioCheckboxGroup

Download source code

Sample form #myform

  Last Name First Name Title
Davolio Nancy Sales Representative
Fuller Andrew Vice President, Sales
Leverling Janet Sales Representative
Peacock Margaret Sales Representative
Buchanan Steven Sales Manager
Suyama Michael Sales Representative
King Robert Sales Representative
Callahan Laura Inside Sales Coordinator
Dodsworth Anne Sales Representative

toggleCheckboxes

Use: $("#myform").toggleCheckboxes(); to toggle all chevkboxes in '#myform'. You can also ignore checkboxes matching a jQuery expression : $("#myform").toggleCheckboxes("#checkbox1");

checkCheckboxes

Use: $("#myform").checkCheckboxes(); to check all checkboxes in '#myform'. You can also ignore checkboxes matching a jQuery expression : $("#myform").checkCheckboxes("#checkbox2");

unCheckCheckboxes

Use: $("#myform").unCheckCheckboxes(); to uncheck all checkboxes in '#myform'. You can also ignore checkboxes matching a jQuery expression : $("#myform").unCheckCheckboxes("#checkbox3");

radioCheckboxGroup

Use: $.radioCheckboxGroup("name"). Makes all checkboxes with the given name behave like a radio button list. Code was originally written by 'Rob D' in an email sent to me.