首頁 >web前端 >js教程 >jqueyr判斷checkbox組的選取(範例程式碼)_jquery

jqueyr判斷checkbox組的選取(範例程式碼)_jquery

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原創
2016-05-16 17:16:531078瀏覽

html:

複製碼 代碼如下:
                       
    ="3">
                            核准  
                     來說針對" />未核准
                       
                   


jquery :


$(function () {
    $(".checkboxListItem").change(    //教師       = 'checkItem']:checked").val();            if ($checkValue == 3) {      . 🎜>                $( "#slsa_noApproval").attr("checked", false);             }       $("#slsa_approval").attr("checked", false);                $(" #slsa_noApproval").attr("checked", true);
            }
       


複製程式碼


程式碼如下:


 var checkCheckbox = $("#slsa_approval").attattr("checked");
        if (checkCheckbox == true) {
            auditState = "3";        }

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn