How does it work? This code checks/unchecks all checkboxes within the same fieldset. Simple and semantic. Example completed code See this in action and view the source if you’d like. HTML Setup Add checkboxes however you like, just make sure they are within the same fieldset. <fieldset> // these will be affected by check all <div><input type="checkbox" id="checkall"> Check all</div> <div><input ty