Bug Tracker

Ticket #1359 (closed bug: fixed)

Opened 17 months ago

Last modified 16 months ago

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:
Needs: Test Case

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

Changed 17 months ago by john

  • need changed from Review to Test Case

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

Changed 16 months ago by shameister

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 16 months ago by john

  • status changed from new to closed
  • resolution set to fixed

Changed 16 months ago by john

  • version changed from 1.1.3 to 1.1.4
  • milestone changed from 1.1.4 to 1.2
Note: See TracTickets for help on using tickets.