Page 1 of 1

How to re-enable initially disabled select item?

Posted: Tue May 20, 2014 7:09 pm
by Ersel Aker

I have a select item in my page, which I added a custom disabled property on it to make the field initially disabled. Using javascript I am calling prop('disabled', false) to re-enable it.

Javascript does its job but my select item is still showing as disabled.

When I looked at the CSS. The placeholder button still has "ui-state-disabled" class on it. Related span and select item have "mobile-selectmenu-disabled" classes. Do I need to remove those classes manually using JS to make it work or is there a better way of doing it?


How to re-enable initially disabled select item?

Posted: Tue May 20, 2014 7:58 pm
by Maryna Brodina

Hello!

It is better to use preprop('disabled', false) /pre then refresh select component preApperyio("mobileselectmenuName").selectmenu("refresh");/pre