JQuery checkbox checking
Sometimes Jquery.attr('checked','checked') does not work for many cases.
Jquery newest attribute manipulator .prop() can be used as follows
http://jsfiddle.net/yxCnK/
Jquery newest attribute manipulator .prop() can be used as follows
checking
$(document).ready(function(){
$('#btn').click(function(){
$('#chk').removeProp('checked');
$('#chk').prop('checked','checked');
});
});
http://jsfiddle.net/yxCnK/
Comments