Is there a way to disable the icons in jquery? For example I am using ui-icon-circle-triangle-w and ui-icon-circle-triangle-e for "prev/next" and I would like to disable "prev" when at the beginning of the list and next when at the end etc.
Here is a trick to work on a tags to have disabled . Add a class disabled to the a tag and check the on click functions. just return false in case if you don't want to allow clicks when the clicked a tag has a disabled class. Its preferred to call the e.
Datepicker has a built-in disable method for this you can use, which also disables the text input, like this: $("#datepicker"). datepicker("disable");
I guess this should have been obvious but it wasn't in the main documentation on how to use the icons. You just add the class "ui-state-disabled" to the element. So for example to do it thru javascript you might do:
$('').addClass('ui-state-disabled');
You can set .ui-icon to not display, which should also hide the icons. You may or may not need the "!important" part.
.ui-icon { display: none !important; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With