Various plugins for working with checkboxes. Updates - 10 Jan 2007: bug fixes; 5 Dec 2006: radioCheckboxGroup
Use: $("#myform").toggleCheckboxes(); to toggle all chevkboxes in '#myform'. You can also ignore checkboxes matching a jQuery expression : $("#myform").toggleCheckboxes("#checkbox1");
Use: $("#myform").checkCheckboxes(); to check all checkboxes in '#myform'. You can also ignore checkboxes matching a jQuery expression : $("#myform").checkCheckboxes("#checkbox2");
Use: $("#myform").unCheckCheckboxes(); to uncheck all checkboxes in '#myform'. You can also ignore checkboxes matching a jQuery expression : $("#myform").unCheckCheckboxes("#checkbox3");
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.