Tuesday, 15 May 2012

javascript - jQuery Accordion display specific tab -



javascript - jQuery Accordion display specific tab -

i'm rusty @ javascript , html, , trying it.

here's sample code of element i'd modify:

<div id="tabcontainer" class="table"> <h1>container</h1> <ul class="tabs"> <li><a href="#tab1">tab 1</a></li> <li><a href="#tab2">tab 2</a></li> <li><a href="#tab3">tab 3</a></li> </ul> <div id="tab_display"> <div id="tab1" class="tab_content"></div> <div id="tab2" class="tab_content"></div> <div id="tab3" class="tab_content"></div> </div> </div>

i'm using version of jquery accordion switch between tabs,and works without trouble. clicking on tab 2, while tab 1 selected, clear 'tab_display' , display contents of tab 2.

i command tab displayed, clicking button example.

if tab 1 beingness displayed , click button on page, i'd specific tab displayed (show selection on 'tabs' list, , show contents in 'tab_dsiplay').

how can this? thanks!

try using solution here open-jquery-accordion-panel-with-link-outside-of-acccordion

demo here.

javascript jquery html jquery-ui tabs

No comments:

Post a Comment