Posted By

jmaties on 09/09/10


Tagged

jquery drupal


Versions (?)

Ancla activo con JQuery


 / Published in: jQuery
 

  1. $(document).ready(function(){
  2. //set class active-anchor to active anchor
  3. $('a').each(function(){
  4. if($(this).attr('href')==window.location.search)
  5. $(this).addClass('active-anchor')
  6. });
  7. });

Report this snippet  

You need to login to post a comment.