[jQuery] Re: CSS attributes as a variable.

2009-06-02 Thread jeff
Worked! Thanks!!! On Jun 2, 2:58 pm, waseem sabjee wrote: > something like this > > var mycolor = "#000"; > $("h1").css({color:mycolor }); > > this is your statement > > 'color', ' + color + ' > > it should be > > color:color > > On Tue, Jun 2, 2009 at 8:50 PM, jeff wrote: > > > Hello, I am try

[jQuery] Re: CSS attributes as a variable.

2009-06-02 Thread mkmanning
$("h1").css({'color':color}); On Jun 2, 11:50 am, jeff wrote: > Hello, I am trying to get the color of an element and change the color > of another element with that color. Does this make sense? > > What is wrong with this? I would like all of the H1 tags to inherent > the color of ".ui-state-er

[jQuery] Re: CSS attributes as a variable.

2009-06-02 Thread waseem sabjee
something like this var mycolor = "#000"; $("h1").css({color:mycolor }); this is your statement 'color', ' + color + ' it should be color:color On Tue, Jun 2, 2009 at 8:50 PM, jeff wrote: > > Hello, I am trying to get the color of an element and change the color > of another element with th