Opened 13 years ago
Closed 13 years ago
#6330 closed bug (duplicate)
'checked' attribute does not get rendered to string
Reported by: | ben.page | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.3 | |
Component: | attributes | Version: | 1.4.2 |
Keywords: | checkbox checked | Cc: | |
Blocked by: | Blocking: |
Description
var obj = $("<input>").attr({
type: "checkbox", checked: true
});
creates a checkbox object which is checked. If you render that object to a string you only get
<input type="checkbox" />
you do not get checked="checked"
Change History (2)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
in order to render to a string i use:
var str = $('<div>').append(obj).remove().html();