Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul class="static">
- <li class="static"><a class="static menu-item" href="/SitePages"> </a></li>
- <li>other anchor tags</li>
- <li></li>
- </ul>
- $('a[href="/SitePages"]').bind('click', function(){
- $(this).closest('li').css({
- backgroundColor: "#000"
- });
- });
- $('a[href="/SitePages"]').click(function(){this.parent.css("background-color", "blue")});
- $('a[href="/SitePages"]').click(function(){this.closest('li').css("background-color", "blue")});
Add Comment
Please, Sign In to add comment