如果我通过js在doc.ready之后插入一些html,那么checked=' checked‘单选按钮在Google Chrome中不会呈现为选中状态
此外,我还注意到,如果从输入中删除name属性,它就会正常工作
整个过程是这样的:
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"
type="text/javascript"></script>
</head>
<body>
<script type='text/javascript'>
$(function(){
$('body').append('<input type="radio" checked="checked" value="33" name="whatever" id="aeHobby0">');
});
</script>
</body>
</html>https://stackoverflow.com/questions/6831011
复制相似问题