Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#8112 closed bug (invalid)

Set "name" attribute using attr doesn't work on IE 8

Reported by: [email protected] Owned by: [email protected]
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 danheberden

Component: unfiledattributes
Owner: set to [email protected]
Status: newpending

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.

comment:2 Changed 12 years ago by danheberden

Resolution: invalid
Status: pendingclosed

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.

http://jsfiddle.net/danheberden/DM5t7/

Version 1, edited 12 years ago by danheberden (previous) (next) (diff)

comment:3 Changed 12 years ago by jitter

Priority: undecidedlow

comment:4 Changed 12 years ago by anonymous

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.