forum

Home / DeveloperSection / Forums / How to change the CSS with javascript ?

How to change the CSS with javascript ?

Aaron Douglas 2089 19-Aug-2013
Hi!

I do not know how to access a specific CSS using javascript.

Let us say,

#menu { color: red; }
can be accessed by
document.getElementById('menu').style.color = "blue";
But I want to access
#menu li a { height: 10%; }

How do I access that using document.getElementById() ?

Thanks is advance

Updated on 19-Aug-2013

Can you answer this question?


Answer

1 Answers

Liked By