/ Published in: JavaScript
Expand |
Embed | Plain Text
var path = location.pathname.substring(1); if ( path ) $('#menu a[href$="' + path + '"]').attr('class', 'selected');
You need to login to post a comment.
var path = location.pathname.substring(1); if ( path ) $('#menu a[href$="' + path + '"]').attr('class', 'selected');
You need to login to post a comment.