I have a checkbox element with id #tmcp_choice_5_0_22
And and have this code which works fine:
$('input#tmcp_choice_5_0_22').click(function(){
alert('Does this work?');
});
Problems happens when the checkbox is 'disabled', it seems that the click()
function doesn't work in disabled elements.
Is there other function I could use for this instead of click()
?
The duplicated question doesn't help me, because I can not put another element in the HTML, the html code is generated by a wordpress plugin.