Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.header-bottom-menu li > :nth-last-child(2)').each(function(index, element){
- var thisEl = $(this),
- next = thisEl.next(),
- list = thisEl.next().children('li');
- list.each(function(indx, element){
- var link = $(this).children();
- var arr = link.attr('href').split('/');
- arr.splice(2, 1);
- var str = arr.join('/');
- link.attr('href', str);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement