文本输入框和文本输入域 Text inputs & Textareas
HTML 代码:
$('.selector').textinput('enable');
HTML 代码:
$('.selector').textinput('disable');
复选按钮 Checkboxes
HTML 代码:
$("input[type='checkbox']").checkboxradio('enable');
HTML 代码:
$("input[type='checkbox']").checkboxradio('disable');
HTML 代码:
$("input[type='checkbox']:first").attr("checked",true).checkboxradio("refresh");
单选按钮组 Radio buttons
HTML 代码:
$("input[type='checkbox']").checkboxradio('enable');
HTML 代码:
$("input[type='checkbox']").checkboxradio('disable');
HTML 代码:
$("input[type='checkbox']:first").attr("checked",true).checkboxradio("refresh");
列表标记的规约List markup conventions
Java Script代码:
$('.selector').listview('refresh');
选择菜单 Select menus
刷新选择菜单 Refreshing a select
var myselect = $("select#foo"); myselect[0].selectedIndex = 3; myselect.selectmenu("refresh");
disable()
-
This method does not accept any arguments.
Invoke the disable method:
1
|
$( ".selector" ).selectmenu( "disable" );
|
enable()
-
This method does not accept any arguments.
Invoke the enable method:
1
|
$( ".selector" ).selectmenu( "enable" );
|
refresh()
This is used to update the custom select to reflect the native select element's value. If the number of options in the select are different than the number of items in the custom menu, it'll rebuild the custom menu.
-
This method does not accept any arguments.
Invoke the method:
1
|
$( ".selector" ).selectmenu( "refresh" );
|
使用瀑布流代码是出现的问题。在火狐的firebug中。
cannot call methods on masonry prior to initialization; attempted to call method 'refresh'
找到解决问题,需要在使用的时候,初始化一次,代码。
$restrict_date_begin.textinput().textinput('enable');
$("#enable_print").checkboxradio().checkboxradio('enable');