I currently have this code:
$( ".feature-tabs" ).tabs(
{ collapsible: true, fx: [{opacity:'toggle', duration:'slow', height: 'toggle'}, // hide option
{opacity:'toggle', duration:'slow', height: 'toggle'}]}); // show option
and I want to set the tabs to be disabled when the page loads but I am having trouble with it. I have tried adding disabled:true into the options but can’t get it to work.
Could someone please show me the correct way to do it? Thanks for any help
Edit: HTML of the tabs:
<div class="feature-tabs" id="tabs-set">
<ul>
<li><a href="#tabs-1" id="tab1">How does it<br/>work?</a></li>
<li><a href="#tabs-2" id="tab2">Heating Start<br/>Time</a></li>
<li><a href="#tabs-3" id="tab3">Turning on<br/>the boiler</a></li>
</ul>
<div id="tabs-1">
<p>test</p>
</div>
<div id="tabs-2">
<p>test2</p>
</div>
<div id="tabs-3">
<p>test3</p>
</div>
</div>
You should use
where the number of the arrays are the tabs to be disabled (starting from 0) so that disable the second and third tab
edit in your case use
fiddle here http://jsfiddle.net/WqPtr/