I want the checkbox to be checked when I am using jquery toggle function. It works fine when I use the .bind('click').
$('#chkb').toggle(function () {
$('#va').text("checked");
$('#chkb').attr('checked', 'checked');
},
function () {
$('#chkb').attr('checked', 'false');
$('#va').text("");
});
html
<input type="checkbox" id="chkb" />
How do I get it done.
Thanks Jean