I want to have a div element set to not be clickable and then set it to clickable after another element is clicked.
So, when .case is clicked:
$(\'.case\
$('#patient').on('click', function() { if ( $(this).hasClass('active') ) { // do whatever when it's active. } return false; });
If you just want it to not accept, you can add this to your css (pointer-events):
#patient { pointer-events: none; } #patient.active { pointer-events: auto; }