toggle between checked and unchecked jquery code example Example: jquery toggle checkbox checkBoxes.attr("checked", !checkBoxes.attr("checked"));