Aleks
asked on
Open page on tab # 2 using bootstrap
I am linking to a page that uses tabs (Bootstrap). By default it always opens on tab # 1, for the most part this is ok, but for this particular link I want for it to open on tab# 2
This is my link:
links_index.asp?caseid=<%= (rs_case.F ields.Item ("Id").Val ue)%>
This is the code for the tabs:
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#tab-1">Users</a></l i>
<li class=""><a data-toggle="tab" href="#tab-2">Sponsoring Employer</a></li>
</ul>
This is my link:
links_index.asp?caseid=<%=
This is the code for the tabs:
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#tab-1">Users</a></l
<li class=""><a data-toggle="tab" href="#tab-2">Sponsoring Employer</a></li>
</ul>
ASKER
It works, moves the page to tab# 2 ... the only problem I find is that it also scrolls the page all the way down, can this be avoided ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect ! You da man :)
ASKER
Perfect !
Glad it worked for you. Thanks for the points.
links_index.asp?caseid=<%=
Then add some jQuery to switch the tabs on document ready.
Open in new window