Side navigation
#1359 closed bug (fixed)
Opened July 05, 2007 10:40AM UTC
Closed August 24, 2007 11:25PM UTC
Last modified March 15, 2012 04:40PM UTC
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">')
Attachments (0)
Change History (4)
Changed July 20, 2007 03:48PM UTC by comment:1
need: | Review → Test Case |
---|
Changed August 24, 2007 10:50PM UTC by comment:2
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
Changed August 24, 2007 11:25PM UTC by comment:3
resolution: | → fixed |
---|---|
status: | new → closed |
Documented:
Changed August 24, 2007 11:25PM UTC by comment:4
milestone: | 1.1.4 → 1.2 |
---|---|
version: | 1.1.3 → 1.1.4 |
The problem is that, in IE, you can't change the type of an input element once it's been created.