thenesh Posted November 4, 2009 Share Posted November 4, 2009 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. Quote Link to comment Share on other sites More sharing options...
thenesh Posted November 4, 2009 Author Share Posted November 4, 2009 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] Quote Link to comment Share on other sites More sharing options...
Adam Posted November 4, 2009 Share Posted November 4, 2009 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. Quote Link to comment Share on other sites More sharing options...
thenesh Posted November 5, 2009 Author Share Posted November 5, 2009 here is code notify if not under stood [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.