即时通讯尝试取消选中与jquery的jquerymobile复选框。 即时通讯设法取消选中它时,一个人点击一个按钮。jquerymobile复选框
这是我复选框:
<input id='_inputcb_Q801' name='_inputcb_Q801' type='checkbox'>
<label id='_inputcb_Q801L' for='_inputcb_Q801'>Text</label>
,我已经尝试这些选项。
function uncheckCB(){
$('#_inputcb_Q801').prop('checked',false).checkboxradio('refresh');
$('#_inputcb_q801').not(:checked);
$('input[type=\"checkbox\"]:first').attr('checked', false).checkboxradio('refresh');
$('input[name=_inputcb_Q801]').attr('checked',false);
$('input[name=_inputcb_Q801]').prop('checked', false);
}
该功能是一个按钮的点击。
上述选项均不起作用。 任何人都知道另一种方法来取消选中jquerymobile复选框。
在此先感谢
你在哪里调用该函数? –