Fair enough. I'll use the "replaceWith" instead.
Thanks, JK From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Monday, October 27, 2008 2:03 PM To: [email protected] Subject: [jquery-dev] Re: Is the "name" attribute of a named anchor read-only in IE? If I remember correctly - the name does actually update but the problem is with innerHTML (it still gets the old value out). We've discussed ways of trying to fix this in our cloning code (one place where this is currently an issue) but haven't hit a solid conclusion yet. So, yes, the attribute is being updated - just not the "innerHTML" representation. Silly IE. --John On Mon, Oct 27, 2008 at 4:38 PM, Jeffrey Kretz <[EMAIL PROTECTED]> wrote: I'm working on a CMS subsystem for adding named anchors to the page. The following code: $(el).attr('name','Test'); Works fine in FF, but not in IE. The actual HTML name attribute doesn't update. Here is a test case: http://test1.scorpiondesign.com/LocalTest3.htm The new value of the "name" attribute is alerted to you, but the innerHTML of the parent div shows the original value of the name attribute. Any ideas? JK --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
