文本输入框和文本输入域 Text inputs & Textareas
text输入框拥有如下方法:
enable
使一个输入框可用
HTML 代码:
$('.selector').textinput('enable');
disable
使一个输入框不可用
HTML 代码:
$('.selector').textinput('disable');
复选按钮 Checkboxes
复选按钮拥有如下方法:
enable
使一个复选按钮可用
HTML 代码:
$("input[type='checkbox']").checkboxradio('enable');
disable
使一个输入框不可用
HTML 代码:
$("input[type='checkbox']").checkboxradio('disable');
refresh
更新复选按钮
如果通过js修改了复选按钮,必须通过refresh 来更新复选按钮的外观。
HTML 代码:
$("input[type='checkbox']:first").attr("checked",true).checkboxradio("refresh");
单选按钮组 Radio buttons
复选按钮拥有如下方法:
enable
使一个复选按钮可用
HTML 代码:
$("input[type='checkbox']").checkboxradio('enable');
disable
使一个输入框不可用
HTML 代码:
$("input[type='checkbox']").checkboxradio('disable');
refresh
更新复选按钮
如果通过js修改了复选按钮,必须通过refresh 来更新复选按钮的外观。
HTML 代码:
$("input[type='checkbox']:first").attr("checked",true).checkboxradio("refresh");
列表标记的规约List markup conventions
refresh
刷新listview
如果用js手动修改了一个listview,必须调用refresh方法刷新listview的外观。
Java Script代码:
$('.selector').listview('refresh');
选择菜单 Select menus
刷新选择菜单 Refreshing a select
如果你通过js操作了选择菜单,务必通过refresh 方法来更新他的样式。
var myselect = $("select#foo"); myselect[0].selectedIndex = 3; myselect.selectmenu("refresh");
disable()
disable a text input.
-
This method does not accept any arguments.
Code examples:
Invoke the disable method:
1
|
$( ".selector" ).selectmenu( "disable" ); |
enable()
enable a disabled text input.
-
This method does not accept any arguments.
Code examples:
Invoke the enable method:
1
|
$( ".selector" ).selectmenu( "enable" ); |
refresh()
update the custom select.
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.
Code examples:
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');
相关推荐
jqm文件上传,上传图片,jqm的表单操作,jqm的ajax的使用,jqm文件操作大全,文件操作demo
jqm模仿iPhone桌面菜单,jqm实战开发,jqm开发例子Demo jqm模仿iPhone jqmDemo jqm例子 jqm实战开发 jqm选项卡 使用jqm实现iPhone桌面功能,jQuery Mobile实现选项卡功能
jqm中文时间控件,在手机web开发上应该有所帮助
一个jqm的实例,一个前端的运用,有关播放器的
http://blog.csdn.net/chelen_jak/article/details/19397569 源码
JQM 的使命是向所有主流移动浏览器提供一种统一体验,使整个 Internet 上的内容更加丰富 — 不管使用哪种查看设备。 JQM 的目标是在一个统一的 UI 中交付超级 JavaScript 功能,跨最流行的智能手机和平板电脑设备...
《jQuery Mobile实战》源码
JQM1.4.5-DEMOS JQM 移动演示 1.4.5
jqm的多列布局demo,html5的多列布局demo,多列布局的详细讲解,html5开发实例详解
JQM301语音模块,语音模块,JQM301语音芯片,MP3语音芯片.pdf
JQM301语音模块,语音模块,JQM301语音芯片,MP3语音芯片[汇编].pdf
jQuery Mobile(jqm)按钮的隐藏和显示,包括a标签,圆角和非圆角按钮jQueryMobile jqm jqm按钮隐藏 jqm按钮显示 jqm按钮事件 jQuery Mobile(jqm)input按钮的隐藏和显示 a标签的隐藏和显示 圆角按钮的css样式控制
jqm-内联-多选一个插件,可让您使用复选框组在 jquery mobile 中表示多选。 演示: : 为什么? 我有一个存在于弹出窗口中的 jQM 表单,我需要在这里使用多选。 多选需要使用 jQM 样式,但这是不可能的,因为 jQM 将...
jQM:jQM文档的免费社区应用程序的源代码
样品101 示例 jqm 模板
简单的demo websocket+jqm+jqplot。需要自己写后台支持websocket通信
jqm4gwt.zip,jqm4gwt与jquery mobile的所有dependenciesgwt库捆绑在一起
jQM Autocomplete是一个自动提示相关内容的jQuery Mobile搜索插件。用户在搜索框输入前几个字母或是汉字的时候,Autocomplete就能从存放数据的文本或是数据库里将所有以这些字母开头的数据提示给用户,供用户选择,...
jqm+ phonegap编写的联系人小例子 可以动态的读取联系人 ,增加联系人删除联系人,修改联系人功能没有写,编写过程中发现了官方文档的几处错误转载请注明作者出处