I'm looking for some Javascript jedi-master to assist in creating a function that adds a class to a list of elements based on a session variable.
In other words:
If SESSION['MM_UserGroup'] is not equal to 1, then add the class '.hide-content' to the following elements:
.control #nav li#nav-admin .control #nav li#nav-pages
or any element I want to add to list.
The idea is to basically hide various navigational links if the person logged-in doesnt' have the correct access level.
Thanks very much for your feedback! Happy Friday!