Bug Tracker

Modify

Ticket #6272 (closed bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

Inconsistent behavior while creating new checkbox

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

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

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to duplicate

Dup of #3879.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.