Modify ↓
Ticket #8112 (closed bug: invalid)
Set "name" attribute using attr doesn't work on IE 8
| Reported by: | carloseugenio@… | Owned by: | carloseugenio@… |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | attributes | Version: | 1.5 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
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
comment:1 Changed 2 years ago by danheberden
- Owner set to carloseugenio@…
- Status changed from new to pending
- Component changed from unfiled to attributes
comment:2 Changed 2 years ago by danheberden
- Status changed from pending to closed
- Resolution set to invalid
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.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
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.