Link to home
Create AccountLog in
Avatar of plord1234
plord1234

asked on

jquery method to dynamically change a css style

I have a style sheet for a page that contains a menu control. The menu buttons have a separate image for each of 3 conditions.  hover: cursor over button, active: button selected, off: button unselected.

here is the menu style for the first menu button configured in the css:

.RadMenu_Dnn .rmRootGroup .Rootmenu1
{
    background:url(images/bw-off.png) center no-repeat;
}

What is the jQuery code to change the background image to "images/bw-on.jpg" ?
SOLUTION
Avatar of Adam
Adam
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account