Optimised scripts for disabling dropdowns