一般登录的时候 都有个记住用户名 记住密码 的两个checkbox 多选框用jquerymobile 做页面 ,当勾选checkbox 时总是不能获取它正确的值。解决办法: $('input[type="checkbox"]').bind('click',function() { $(this).prop('checked').checkboxradio("refresh"); // 绑定事件及时更新checkbox的checked值 });如果要用js去改变checkbox的值时也要及时刷新。 $( Read More
posted @ 2012-04-13 12:33 limanclear Views(2099) Comments(1) Diggs(0) Edit