jquery all checkbox setchecked
jQuery("input[name" checkList "]:checked"). As you can see, it is very simple. Give it the name of the checkboxes, add on the :checked and boom you have a list of checked checkboxes. Could it be more simple? I think not. (.myCheckbox).removeAttr(checked). You can check all checkboxes like thisjQuery 1.5 and below. The .prop() function is not available, so you need to use .attr(). To check the checkbox (by setting the value of the checked attribute) do. If you have never done it before when you need to react on a checkbox being checked on unchecked, you might try using the jQuery attr function e.g. Thus every time this expression returns true, your check box will be setChecked true.