Side navigation
#6272 closed bug (duplicate)
Opened March 12, 2010 12:43PM UTC
Closed June 15, 2010 12:42AM UTC
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);
Attachments (0)
Change History (1)
Changed June 15, 2010 12:42AM UTC by comment:1
| resolution: | → duplicate |
|---|---|
| status: | new → closed |
Dup of #3879.