#1359 closed bug (fixed)
Create input of type checkbox not working in IE
Reported by: | stickmus | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.2 |
Component: | core | Version: | 1.1.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
$('<input">').attr('type', 'checkbox');
This isn't working in IE, works in FF
As a workaround the following does work
$('<input type="checkbox">')
Change History (4)
comment:1 Changed 16 years ago by
need: | Review → Test Case |
---|
comment:2 Changed 16 years ago by
For this case no fix is available. Reason is microsofts read/write-once rule for input-elements.
You can 'ship' this problem, by using $('<input type="checkbox">') or generate the element manually.
tempVar = document.createElement('input'); tempVar.setAttribute('type', 'checkbox'); $('form').append(tempVar);
This doesn´t turn off the read/write-once-rule'''
Microsofts official statement you find here: http://msdn2.microsoft.com/en-us/library/ms534700.aspx
comment:3 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Documented: http://docs.jquery.com/Core#.24.28_html_.29
comment:4 Changed 16 years ago by
Milestone: | 1.1.4 → 1.2 |
---|---|
Version: | 1.1.3 → 1.1.4 |
Note: See
TracTickets for help on using
tickets.
The problem is that, in IE, you can't change the type of an input element once it's been created.