rhyno99
asked on
access a css class with javascript?
Hello Experts,
Is it possible to access a css class with javascript? I have been researching it but it seems to not be related to html/css classes.
I would like to do something like this but menuBar2 is a class, not an id.
document.getElementById("m enuBar2"). style.back groundColo r = "#06F";
Is it possible?
Thanks,
rhyno99
Is it possible to access a css class with javascript? I have been researching it but it seems to not be related to html/css classes.
I would like to do something like this but menuBar2 is a class, not an id.
document.getElementById("m
Is it possible?
Thanks,
rhyno99
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you all for your help.
ASKER
document.getElementById("M
}
document.getElementById("m
Thank you everyone for the tips. I will need to continue to review these examples to see what will work best. Sorry, I am new at this and a bit slow to understanding the scripts.