Advertisement
Vujin

Untitled

Sep 12th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.18 KB | None | 0 0
  1. $(function(){
  2.   var url = window.location;
  3.   var element = $('.menu a').filter(function () {
  4.     return this.href == url;
  5.   }).addClass('active').parent().addClass('active');
  6. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement