$('').attr('type', 'checkbox').attr('class', 'myclass').attr('checked', true).appendTo(myContainerElement)The problem is this doesn't work in IE7. The reason being you can't assign a type after the control is created. So I moved the type into the selection as can be seen below and this fixed my IE7 issue.
$('').attr('class', 'myclass').attr('checked', true).appendTo(myContainerElement)
No comments:
Post a Comment