[jQuery] Modify ID attribute

2008-06-19 Thread Daniel A.

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:



into this:



?

I've already tried with $("#header-blue").attr("id","header-yellow);
without success. Any ideas?

Thanks in advance.


[jQuery] Modify ID attribute

2008-06-19 Thread Daniel Amselem


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:



into this:



?

I've already tried with $("#header-blue").attr("id","header-yellow); without
success. Any ideas?

Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Modify-ID-attribute-tp18010518s27240p18010518.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.