有關多選與單選(轉載)
$(".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
$(".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
留言
張貼留言