Hi -
Thanks for the useful information about how to add JavaScript to a page.
I know it’s not quite on the topic of RoR, but I need a little bit of
help with my JavaScript.
My HTML is as follows:
What I want to do is apply the class “selected” to certain links using
JavaScript. The purpose of this is to show what page you are currently
on.
The JavaScript I currently have is this:
However, this only applies the class of “selected” to the
to use the getElementById function to select the actual hyperlink?
Many thanks in advance!
Try Live.com: where your online world comes together - with news,
sports, weather, and much more.
Outlook – free personal email and calendar from Microsoft