Do you really need checkedit in code? (Is there something I missed?) When he clicked, he already switched his validation attribute value.)
The best way to do this is to use such changes,
$('#chkb').change(function () {
var self = this;
$('#va').text(function(i,text){
return self.checked?"checked":"";
});
})
source
share