Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function(){
- //struktura menu je vidět na webu, v podstatě se ale načtou všechny div-y v #menu do pole
- $('#menu div').each(function(){
- var that = $(this);
- that[ that.children().attr( 'href' ) === hash ? 'addClass' : 'removeClass' ]( 'active' );
- });
- });
Add Comment
Please, Sign In to add comment