Omu
Omu

Reputation: 71206

checked="checked" not rendering as checked radio button in Chrome

If I insert some html via js after the doc.ready than checked='checked' radio button doesn't render as checked in Google Chrome

also, I noticed that if I remove the name attribute from the input than it works

here is the whole thing:

<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>

Upvotes: 7

Views: 5302

Answers (1)

T.J. Crowder
T.J. Crowder

Reputation: 1074485

It would appear to be a bug in 1.4.4 (live copy). It works fine in 1.6.2 (live copy). Looks like it was fixed between 1.5.2 and 1.6.0 (at least in my tests), which suggests it was probably fixed by the patch that fixed bugs 8060 and 8500.

Upvotes: 4

Related Questions