set checked attribute javascript jquery code example
Example 1: set attribute checked jquery
$( this ).attr( 'checked', true )
Example 2: checkbox set checked jquery
.prop('checked', true);
$( this ).attr( 'checked', true )
.prop('checked', true);