This is a migrated thread and some comments may be shown as answers.

[Solved] Disabling the tabstrip on page load

0 Answers 155 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Anil
Top achievements
Rank 1
Anil asked on 17 Jun 2010, 08:02 PM
I am trying to disable some of the tabs in the tabstrip on page load event.

 

<input type="button" id="disabletab" class="" value="button" onclick="Disable()" />

 


function

 

Disable() {

 

 

var tabstrip = $("#TabStrip").data("tTabStrip");

 

 

var item = $("li", tabstrip.element)["1"];

 

tabstrip.disable(item);

}
This tab with index "1" gets disabled on clicking the button. But I want to disable the tab on load.
So I have tried the following:
$(function()
{
Disable() ;
});

This does not work. Please let me know how to enable/disable the tab on load event.
Thanks
Anil

Tags
TabStrip
Asked by
Anil
Top achievements
Rank 1
Share this question
or