CJuiTabs with forms redirect

Hi,

I am using CJuiTabs to show 3 forms, one on each tab, each using the same Controller. Question, if I am on Tab 3, and hit Submit, I am redirected back to Tab 1 (which is the default tab open). Is there a way to redirect back to whatever Tab I currently was on?

Thanks.

You can hidden a field in each form like ainput type="hidden" value="form_X" />. Add this value in redirect. And show the related tab when you render your CJuiTabs.