有關多選與單選(轉載)

$(".grpCbx").click(function() {
    $(".grpCbx").not(this).removeAttr("checked");
});

將其他check清空,使用專屬jquery的 .not(this) 來處理


原出處
http://blog.darkthread.net/post-2009-05-29-something-about-js-event.aspx

留言

這個網誌中的熱門文章

jQuery獲取Select選擇的Text和Value(轉)

Android 在Fragment下控制輸入鍵盤

彈跳視窗iframe的運用