[Javascript] InnerHTML and CSS Class

Nick Fitzsimons nick at nickfitz.co.uk
Tue Mar 20 16:34:30 CDT 2007


On 20 Mar 2007, at 20:48:08, Glenn E. Lanier, II wrote:

>> You're missing a semicolon after your background-color rule;
>
> <#insert head_banging_against_desk> Thanks for solving several  
> hours of
> grief, checking, etc. At one point, I saw the border/background, so  
> I had to
> have lost the semi-colon inadvertently.

We've all been there :-)

> I guess the method I'm using is valid then?

Yes, I would almost always recommend that approach over the  
alternatives such as setting styles directly.

> Thanks again for the quick look.

No problem,

Nick.
-- 
Nick Fitzsimons
http://www.nickfitz.co.uk/






More information about the Javascript mailing list