Ersel Aker
Posts: 0
Joined: Sun May 18, 2014 6:08 pm

How to re-enable initially disabled select item?

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to re-enable initially disabled select item?

Hello!

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

Return to “Issues”