即時通訊嘗試取消選中與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複選框。
在此先感謝
你在哪裏調用該函數? –