
经我测乎银试,这是一个BUG,在最新版的js(jquery-1.7.1.min.js)里已修正
加上一点http://bugs.jquery.com/ticket/3399,楼腊粗主可以在这个网址上看到BUG信息
<岁局宴input type="button" class="btn" value="button3" style="color:red">
$(document).ready(function() {
$('input[class=btn]').each(function(){
if(typeof($(this).attr("style"))!="纤腔undefined"){
$(this).attr("checked",true);
}
});
});
已测毁腔衫圆皮试没有问题。
我再试试看