I've used hover function where you do x on mouseover and y and mouseout, so I'm trying the same for click but it doesn't seem to work:
$('.offer').click(function(){
$(this).find(':checkbox').attr('checked', true );
},function(){
$(this).find(':checkbox').attr('checked', false );
});
I want the checkbox to be checked when clicked on a DIV, and unchecked if clicked again - a click toggle.
Thanks.