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