/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(document).ready(function(){ //set class active-anchor to active anchor $('a').each(function(){ if($(this).attr('href')==window.location.search) $(this).addClass('active-anchor') }); });