Hi there, I was hoping that someone here might be able to let me know how to do something that’s probably very simple.
I’ve got a list of DIVs on a page, each one with it’s own unique id, i.e.
<div id="event1"> ... </div> <div id="event2"> ... </div> <div id="event3"> ... </div>
Now I’m already able to use the URL to scroll the page down to a specific element on that page via the use of a URL such as www.example.com/page/#event2
This is OK, but what I really want is the ability to take the parameter specified in the URL (the #event2), and use it to somehow highlight that specific DIV.
I’m currently using a little jQuery on the site, so I thought that this might be the best way of achieving this, but I don’t know how.
Can anyone help? Thank you.