Navigation: This link change


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $('#localNav a').each(function(idx){
  2. var href=window.location.href;
  3. if (this.href.toLowerCase() == href.toLowerCase()) {
  4. $(this).addClass('active');
  5. return !1;
  6. };
  7. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.