This will not hide it, but it will disable them. You might want to also add a CSS class called 'disabled' or something and apply and remove that class as you disable/enable the. This way you can style the drop downs and make them look disabled.
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
You can use some jQuery magic to do this:
$(function() {$('#ddlSelectCinema').prop('disabled',true);
$('#ddlSelectSession').prop('disabled',true);
});
This code will disable the "Select Cinema" and "Select Session" drop downs. Then you need an event handler on the drop downs:
$(function() {$('#ddlSelectMovie').change(function() {
$('#ddlSelectCinema').prop('disabled', false);
});
$('#ddlSelectCinema').change(function() {
$('#ddlSelectSession').prop('disabled', false);
});
});
This will not hide it, but it will disable them. You might want to also add a CSS class called 'disabled' or something and apply and remove that class as you disable/enable the. This way you can style the drop downs and make them look disabled.