Jquery1.4.1和1.7.1中对于checkbox的checked属性的不同

在1.4.1中,如果checkbox的状态为选中,则attr("checked")的值为true,反之为false

但是在1.7.1中,checkbox的选中状态的attr("checked")的值为checked,非选中状态的值为undefined

posted @ 2013-01-30 16:47  DCLancer  阅读(163)  评论(0编辑  收藏  举报
(function() { var c = document.createElement('script'); c.type = 'text/javascript'; c.async = true; c.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'www.clicki.cn/boot/48212'; var h = document.getElementsByTagName('script')[0]; h.parentNode.insertBefore(c, h); })();