I’m trying to find out how to check if a checkbox is checked or not.
I know about the :checked selector but I’m trying to do this using the $(this) object.
$(".permission_checkbox").live('change',function(){
if($(this+":checked").length==0){
alert('remove');
} else {
alert('add');
}
});
This code always calls alert('add')!
Thanks for any help & merry christmas
Try
jQuery.is:Hope it helps