jquery attr(“checked”)==true 返回undefined原因

jquery升级完1.7,发现之前的attr(“checked”)==true 都无法工作了,现在你需要把 attr(“checked”)==true 修改为 prop(“checked”)==true 就行了。

(http://api.jquery.com/prop/) 具体看官方信息

posted @ 2012-07-17 17:20  lhyterry  阅读(2567)  评论(0编辑  收藏  举报