【发布时间】:2012-12-07 18:54:06
【问题描述】:
我正在使用 jQuery 为 iOS 开发网络应用程序。 我在一页中有一个选择。根据要求,我必须禁用它。
<select name="select-choice-a" id="selectCardType" data-native-menu="false">
<option value="select">Select Card Type</option>
<option value="A">American Express</option>
<option value="M">Master Card</option>
<option value="V">Visa</option>
</select>
我有2个场景'用户可以直接进入页面或通过url方案形成另一个应用程序'
我用过
$('#selectCardType').selectmenu('disable');
或
'$('#selectCardType').attr('disabled', 'disabled'); `
但这两种情况都不适合我。
【问题讨论】:
标签: jquery-ui ios5 jquery-selectors