How to check & uncheck a checkbox with jQuery

First Way: "$('input[name="chk1"]')" checkbox Name wise check which checkbox is checked

 
 
 
 

Second Way: "$('.chk2')" checkbox Class name wise check which checkbox is checked

 
 
 
 

Third Way: "funchk3(this.value)" on click function name wise check which checkbox is checked