The disabled parameter returns the attribute of the indices of disabled tabs, so the function, to check whether there is one disabled, looks like this:
function isDisabled(index) { return $.inArray(index, $("#tabs").tabs("option", "disabled")) > -1; }
Here you can try here , it just uses $.inArray() to see if the index is present, just remember that the index is 0 , so the first tab is 0 , the second is 1 , etc.
source share