selecting tabs conditionally

selecting tabs conditionally

Hi,

I have a page with 6 tabs, each tab contains a form. what I would like to do, is when user clicks continue button, the form processes, sets a check variable and when the page reloads, if the check variable exists, select and display the next tab. Everything is working except the selection of the next tab on reload.

       
  1. <cfif isDefined('form.advT2')>
  2.             <cfoutput><cfdump var="#form#"></cfoutput>
  3.            
  4.             <script  type="text/javascript">
  5.             $(document).ready(function() {
  6.             $('div#TabbedPanels1').tabs({'select', '#tabPanel-3' });
  7.              });
  8.             </script></cfif>
I have also used the zero-based index for the tab also  and no love. I get the default.

Any suggestions or examples will be greatly appreciated.