Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul>
- <li id="tab1">Tab</li>
- <li id="tab2">Tab2</li>
- <li id="tab3">Tab3</li>
- </ul>
- www.vashsite.ru/uslugi#tab3
- var anchor = window.location.hash.split('#');
- <a href="services.html#hygiene"></a>
- var hash = window.location.hash;
- $('.card a').each(function(){
- if($(this).attr('href') == hash){
- $(this).trigger('click');
- }
- });
Add Comment
Please, Sign In to add comment