How can a css style subclass can be changed with javaScript ?
To make myself clear let's say we have the following code:
ul#main-menu{
margin:0 0 0 285px;
padding:0 0 0 0;
list-style:none;
}
ul#main-menu li a{
margin:0 0 0 0;
padding:8px 10px 7px 10px;
color:#FFF;
}
I can change the margin of the ul#main-menu using the code: document.getElementById('main-menu').style.marginLeft='10px';
So how can one change the color of li a
using javaScript ?