set attribute checked jquery 1

set attribute checked jquery

$( this ).attr( 'checked', true )

Here is what the above code is Doing:
1. We’re using the .each() method to loop through each checkbox.
2. We’re using the .attr() method to set the checked attribute to true.

Similar Posts