JQuery a better idea to add active class to menu item?

Update : I misunderstood the question originally. Re-reading it, it sounds like you want to be sure not to match all index. Html s, but only the specific one you're in (which makes rather more sense, actually).

Rather than break up the pathname why don't you just compare the whole thing. If you have relative urls it should be easy. Also, you can perform a replace to deal with absolute urls.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions