How do you bind a function for each index of the jquery UI tabs?
For example, I am creating a 3 part slide sign up, step 1 is a form and has validation, I want to place the code for that inside the load of step1, while also adding classes to the tabs to disable #2 and #3 when on 1, disable #1 and # 3 when on #2
There is no need to bind a function to the tabs, it’s built into the plugin:
From the plugin page:
Inside the function, you can determine the current tab you are in and do what you need to do from there:
Get the current tab index
Get the current tab content ID (from href) – there might be an easier way, but I haven’t found it yet.
but from seeing the other questions you posted about this tab/form system you are trying to use, I threw together a demo here.
HTML
Script