0

I want to disable clicking and going from one tabPanel to another. Like here http://www.eldan.co.il/en/ the user can't select another step. I tried something like this

if (Tabs.ActiveTabIndex == 0) { Tabs.Tabs[1].Enabled = false; }

but it hides the tab...

THelper
  • 15,333
  • 6
  • 64
  • 104
Rougher
  • 834
  • 5
  • 19
  • 46

1 Answers1

0

I found something that helped me.

...prevent switching to the tab on click depending on form validation

Returning false in the tabs select handler prevents the clicked tab from becoming selected.

$('#example').tabs({ select: function(event, ui) { var isValid = ... // form validation returning true or false return isValid; } });

Rougher
  • 834
  • 5
  • 19
  • 46