I have the following HTML :
<label>
<input type='checkbox' checked="checked" />
CLICK ME....
</label>
and script :
$(document).ready(function(){
$("label").on("click",function(){
if ($(this).children("input[type='checkbox']").is(':checked'))
{
//alert("checked");
// return false;
}
else
{
// alert("not checked");
// return false;
}
});
});
How can i get the checked state ? If its checked i want to perform some operations other ways some other .
I used Live/On because the contend is dynamically added.
Please check this jSfiddle