DIV Class change onclick

tralrypep

New Member
I found myself stuck with this:I have an anchor link that points to an inside a div, so the page scrolls all the way down to it.Bad luck is the div is at the bottom of the page, so user won't most likely see it.I thought a good way to solve this would be changing the class of the div when the link is clicked, for example switching the border color to red and then fade back to normal in 2secs.Too bad I have no clue on how to do this. I googled around and it seems this can be done with jQuery, but I really don't understand how to edit the scripts to my needs.Thanks a lot!k
 
Back
Top