I am trying to bind a click event to a div to toggle a checkbox thats inside of it. I tryed this:
$(".extraOp").bind('click', function(){
var chk = $(this).find('input');
chk.attr('checked', !chk.attr('checked'))
});
The problem is that it only works one time, check and uncheck and then nothing. Any ideas ?
Thanks!