Checked radio element creation
Can anyone tell me why jQuery isn't checking radios built with element creation?
- var radio = $("<input />", {
- type: 'radio'
- }).attr('checked', true); // or .attr('checked', 'checked');
This produces
All other attributes work fine, just not checked...
Am I going mad or is this a bug? (Tried with 1.4.x & 1.5.0)