有關多選與單選(轉載)

$(".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 取消Button自帶陰影 (Style已經被用掉的狀況下仍然可用)

Android 返回按鍵的運用