Why am I finding that using:
$( "#tabs" ).tabs( "option", "disabled", 2); // API version - doesn't work
$( "#tabs" ).tabs( "option", "disabled", [2]); // this works
Using the second line may be the reason for odd behavior on the page. That is described in a previous question I posted that has not been resolved.
According to the documentation (options and method), when you use options, it only takes an array. But if when you use the
disablemethod, you can use either an array or an integer. So, if you want to disable the tab with index 2, you can do any one of the following:OR
OR