//更新select值,进行刷新
$("#province${sta.index}").selectmenu();
$("#province${sta.index}").selectmenu("refresh");
$("#province${sta.index}").selectmenu("refresh");
页面布局刷新的一些代码
$("#page1").find('div[data-role="fieldcontain"]').fieldcontain(); $("#page1").find('input[type="text"],textarea').textinput(); $("#page1").find('input[type="radio"],[input[type="checkbox"]').checkboxradio(); $(":jqmData(role='controlgroup')", $("#page1")).controlgroup({ excludeInvisible: false });
查到问题解决方案的一些网址
http://stackoverflow.com/questions/786142/how-to-retrieve-checkboxes-values-in-jquery http://stackoverflow.com/questions/7467909/knockoutjs-and-jquery-mobile-checkbox-doesnt-update-value http://api.jquery.com/val/ http://leotheme.cn/javascript/jquerytocheckbox.htm
本文介绍了使用jQuery更新页面中的checkbox、select等元素,并进行页面布局刷新的方法,包括使用`.attr()`, `.selectmenu()`及`.checkboxradio()`方法,以及通过`.fieldcontain()`, `.textinput()`和`.checkboxradio()`等方法实现页面元素的刷新。
1574

被折叠的 条评论
为什么被折叠?



