Bug Tracker

Opened 10 years ago

Closed 9 years ago

#6272 closed bug (duplicate)

Inconsistent behavior while creating new checkbox

Reported by: janez Owned by:
Priority: Milestone: 1.4.3
Component: unfiled Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:

Description

Same jQuery code produces different results in different browsers. The code bellow attaches a new checkbox, which is checked in Firefox and Chrome, while in IE (tested in IE6 and IE8) it produces checkbox which is not checked.

//using any of the bellow constructors, results are the same
var newField = $("<input></input>").attr("type", "checkbox");	
//var newField = jQuery(document.createElement("input")).attr("type", "checkbox");	
newField.attr("checked", "checked");
$("#someElement").after(newField);

Change History (1)

comment:1 Changed 9 years ago by dmethvin

Resolution: duplicate
Status: newclosed

Dup of #3879.

Note: See TracTickets for help on using tickets.