Hi folks, i have a menu, and i need the link for the current page i am on to be highlighted differently. I do a really twisted way of comparing strings now, but i am sure there is a smarter way?
jQuery(document).ready (function(){
jQuery(".filteroptions .option").each (function (index,ele)
{
link=jQuery(ele).find("a").attr("href").toString();
p=jQuery(window).attr("location").toString().search(link)
if (p!=-1){
jQuery(ele).find(".link").addClass("current")
}
});
});