I’ve seen this question before but all the answers I saw do not apply to my particular problem. Most of the ones I’ve seen were caused by the click not being used in a document ready function. All of the stuff in setup_calenders and disable_items is happening but no alert pops up when the checkbox is clicked.
$(document).ready(setup)
function setup() {
$("id_Clearance").click(enable_clearance);
$("id_Paperwork").click(enable_paperwork);
$("id_AVSupport").click(enable_support);
setup_calendars();
disable_items();
}
function enable_paperwork()
{
alert("clicked");
}
You’re missing the
#signs that indicate that a selector should match an element ID: