1

我正在为iOS应用程序使用JqueryMobile-1.3.0和cordova-2.1.0。我想动态禁用下拉菜单怎么做?我正在这样做 $('#assignedToDropDown').attr('disabled', true); 使用它会变成禁用,但它看起来像活动元素意味着禁用元素 css 没有得到应用。

4

1 回答 1

4
$('select').selectmenu('disable');

在此处阅读更多信息:http: //jquerymobile.com/demos/1.2.0/docs/forms/selects/methods.html

工作示例:http: //jsfiddle.net/Gajotres/dEXac/

于 2013-03-20T08:45:15.553 回答