Jump to content

switching to another tabs of jquery the form validation


thenesh

Recommended Posts

Hello all,

 

I am just switching to JQuery from prototype and i have  to use the

Validation with Tabs plugins for JQuery. Here's my problem:

 

I have one form tag in which I have my tabs container.  I am creating multiple tabs in the pages of 5 states tabs

there are five tabs with the same

form fields

 

So, if the user enters data,on the tab click this must  validates the form fields so that we can get the another tabs

 

Any help would be greatly appreciated.

 

I think the question was not clear. I have a form which is divided into 6 tabs. I want to validate each tab before going to the other. One solution was to disable other tabs until i hit a next button. I want to validate just on switching other tabs using the tab menu. What would be the solution and how to do it best. I am using jquery

 

[attachment deleted by admin]

Create the function(s) to validate each form, and as the "click" event is called on the tabs menu just call the correct validation function. If it returns true display the next form, else handle the error and and stay on the current tab. Can't really give you much more help though without seeing the code.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.