Bootstrap has a really nice feature where you can add a CSS class disabled to an element and it will 'fade' the colours of the element to make it looks as if the element is disabled, however, when you click on the specific element, any actions attached to it will still be working, so I wrote this simple piece of code that will fix that issue.
Place this in your JavaScript file and you must ensure that you have the jQuery library included in your page.
This will now make any 'disabled' elements unusable.
Hope it helps,
Mark.
PHP:
$(".disabled").each(function(q,h){
$(h).attr("disabled", "disabled");
});
Place this in your JavaScript file and you must ensure that you have the jQuery library included in your page.
This will now make any 'disabled' elements unusable.
Hope it helps,
Mark.