I need to uncheck / check the below checkbox using jquery.
Please tell how to change the below checked attribute to unchecked attribute using jquery.
<input name="op1" type="checkbox" checked id="chkEmailNotification" />
I need to uncheck / check the below checkbox using jquery.
Please tell how to change the below checked attribute to unchecked attribute using jquery.
<input name="op1" type="checkbox" checked id="chkEmailNotification" />
Use .prop()
$("#chkEmailNotification").prop('checked',true); //to Check
$("#chkEmailNotification").prop('checked',false); //to Uncheck