There is no difference between the two ways of writing below, it’s just that some code is missing...
Three ways to determine checked in jquery:
Several ways to write jquery assignment checked:
All jquery versions can be assigned like this:
jquery1.6: 4 types of assignment of prop:
$("#cb1").prop("checked",function(){
Return true; //The function returns true or false
});
$("#cb1").prop("checked","checked");
More references: http://api.jquery.com/prop/
>