html - How to link between divs in twitter bootstrap -
i using bootstrap framework create website http://www.keralatravelfriend.com navbars working fine. when link
http://www.keralatravelfriend.com/wayanad#hotels (there div called hotels id) not working. when click in navbar "hotels" fine. to. please help.
i have tried everything
you need triger onclick event on #hotels tab.
$('#link').click(function(){ $('.nav-tabs > .active').next('li').find('#hotels').trigger('click'); });
the problem when link on same page illustration below working ....else if link on page need triger after #id url. in case need use:
$(document).ready(function() { var x = location.hash; $('.nav-tabs > .active').next('li').find(x).trigger('click'); }
html twitter-bootstrap
No comments:
Post a Comment