Tag Archives: checkbox

jQuery: Invert a Selection of Checked Checkboxes

If you have a group of checkboxes on a page, sometimes it is quite nice to give the user some quickfire controls that allows him to select all or select none at a click of a button. Similarly, it is pretty cool to give him the option of inverting his current selection, in other words checking all of those checkboxes currently unchecked, while unchecking all the currently ticked checkboxes. Continue reading

Posted in Technology & Code, Tutorials | Tagged , , , , | View Comments

jQuery: Count the Number of Checkboxes Checked on a Page

To return the number of checked or ticked checkboxes on a page using jQuery is in actual fact pretty simple. By making use of the special :checked selector and combining it with the standard length property. Continue reading

Posted in Technology & Code, Tutorials | Tagged , , , , | View Comments

jQuery: Checking or Unchecking All Checkboxes

Providing functionality to check all, uncheck all or even to invert the checkboxes currently selected on a page is pretty simple to achieve with either plain old JavaScript or the newer, more flashy jQuery library. Continue reading

Posted in Technology & Code, Tutorials | Tagged , , , , , , , , , , | View Comments

jQuery: How to check and uncheck a Checkbox

Checking and unchecking, or ticking and unticking if you prefer, checkboxes using jQuery is remarkably simple. Continue reading

Posted in Technology & Code, Tutorials | Tagged , , , tick, , | View Comments