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.

 

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.