Basically the idea is to find out what the current location is of the document and change the class of the link (navigation accordion) to be changed. So far I have this below it works if the pageURL (variable) is the actual link but I do not want to create a whole list of possible links hence the $(location).att('href');
$(document).ready(function() {
var pageURL = $(location).attr('href');
$('a[href=pageURL]').attr('class', 'active');
});
Any help from any one would be greatly appreciated
Thanks in advance