I'm trying without success to call this function when a div (#schedule
), initially set as disabled, is shown.
function enable_create_btn(){
if($('#schedule').is(":visible")) {
$("#create_btn").prop('disabled', false);
}
else {
$("#create_btn").prop('disabled', true);
}
}
Is it possible to trigger on show event and call this function when div is becomes visible without adding external plugins (like this solution ?)