PDA

View Full Version : JQuery Tabs question


ktsixit
06-10-2009, 10:11 AM
Hi all,
I'm using jquery tabs in my page. The code is the following

$(document).ready(function() {
$('#tabvanilla > ul').tabs({ event: 'mouseover', fx: { height: 'toggle', opacity: 'toggle' } });
});

I have only one question. Can I make all tabs be closed on page load? And how can I do that? Please answer just this one

Fumigator
06-10-2009, 10:22 PM
Give them all the "ui-tabs-hide" css class to begin with.

Fumigator
06-11-2009, 12:43 AM
Ignore that answer-- here's a way that actually works! Set the "selected" option to -1.


$("#mytabs").tabs('option', 'selected', -1);