#8112 closed bug (invalid)
Set "name" attribute using attr doesn't work on IE 8
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | attributes | Version: | 1.5 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi! This code:
//Getting the checkbox var checkbox = $row.find(':checkbox'); //Change the checkbox id and name checkbox.attr('id', 'disassociate-questions'); checkbox.attr('name', 'disassociate-questions'); var row_html_to_add = $row.html(); alert("Row html: " + row_html_to_add);
Alerts only id attribute changed to the new value. The attribute name doesn't change on IE8. In Chrome and Firefox it works correctly.
Regards. Carlos Eugênio.
Change History (4)
comment:1 Changed 12 years ago by
Component: | unfiled → attributes |
---|---|
Owner: | set to [email protected]… |
Status: | new → pending |
comment:2 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Went ahead and made a test case: works fine in IE8 (7, and 6 too) and chrome, etc .
Hope this helps narrow down your problem. I suspect there is an error in your app somewhere.
comment:3 Changed 12 years ago by
Priority: | undecided → low |
---|
comment:4 Changed 12 years ago by
Sorry for not have seen the the bug reporting guide before. Nevertheless, I couldn't reproduce in jsfiddle either. I will double check what might have happened here.
Thanks for the time.
Note: See
TracTickets for help on using
tickets.
Thanks for taking the time to make a bug report! Please make sure you've follow the steps outlined in our bug reporting guide ( http://docs.jquery.com/How_to_Report_Bugs ) which includes making a distilled, runnable test-case on jsfiddle.net.
Looking forward to seeing the demo of your bug.