Skip to main content

Bug Tracker

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:
$('<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 john comment:1

need: ReviewTest Case

The problem is that, in IE, you can't change the type of an input element once it's been created.

Changed August 24, 2007 10:50PM UTC by shameister 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');

This doesn´t turn off the read/write-once-rule!

Microsofts official statement you find here:

Changed August 24, 2007 11:25PM UTC by john comment:3

resolution: → fixed
status: newclosed

Changed August 24, 2007 11:25PM UTC by john comment:4