how to add checked attribute in jquery code example Example: set attribute checked jquery $( this ).attr( 'checked', true )