[jQuery] Modify ID attribute
Hi!, I'm new with jQuery, and I tried to modify the id attribute of a
div without success. I need to do that because I want to change some
CSS properties of that div, and I already have the code. So, how can I
change something like this:
<div id="header-blue" class="span-24">
into this:
<div id="header-yellow" class="span-24">
?
I've already tried with $("#header-blue").attr("id","header-yellow);
without success. Any ideas?
Thanks in advance.