Manage a checkbox via jQuery
the checkBox in html should be
<input type="checkbox" class="myCheckBox" />
Bind a click event to a checkbox
$(".myCheckBox").click(myCheckboxEvent);
The click event like this
function myCheckboxEvent() {
alert($(this).is(':checked')); // alert the checked value
}
You can see, it is quite easy to ‘get’ the checkbox sender via jQuery -‘this’
