I'm trying to set up tabs to be closed then you enter at the same time I'm using the history.
My example keeps all tabs closed if I leave out the "history:true" (tabs expand on click as the should)
Adding history:true makes the the first tab open on pageload (as if I haven't added "initialIndex:null" )
Is this a bug, or is it "this behavior is by design"? (using version 1.2.1 )
Sample code (not working as expexted):
My example keeps all tabs closed if I leave out the "history:true" (tabs expand on click as the should)
Adding history:true makes the the first tab open on pageload (as if I haven't added "initialIndex:null" )
Is this a bug, or is it "this behavior is by design"? (using version 1.2.1 )
Sample code (not working as expexted):
<!-- the tabs -->
<ul class="tabs">
<li><a id="t6" href="#news">News</a></li>
<li><a id="t5" href="#about">About us</a></li>
<li><a id="t4" href="#contact">Contact</a></li>
</ul>
<!-- tab "panes" -->
<div class="panes">
<div>Newspane text</div>
<div>About us text</div>
<div>Contact text</div>
</div>
<script type="text/javascript" src="http://cdn.jquerytools.org/1.2.1/full/jquery.tools.min.js"></script>
<script type="text/javascript">
$(function () {
$("ul.tabs").tabs("div.panes > div", {
initialIndex: null,
history: true
});
});
