Connecting Tech Pros Worldwide Forums | Help | Site Map

Javascript multiple tabs form validation

Newbie
 
Join Date: Aug 2007
Posts: 1
#1: Aug 6 '07
dear sir/madam,
i am working in java/j2ee. In my project using javascript as client side validation. my project have single but multiple tabs like mycomputer properties in out PC.each tab having a form.i want validate every tab and all form data's will submit in last tab.if any field having invalid data(consider third tab have phoneno field but i entered charcters.the field i must enter numbers). now i am in last tab at submit the form.the cursor automatically go to third tab in particular field.how can to do?

Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#2: Aug 6 '07

re: Javascript multiple tabs form validation


Quote:

Originally Posted by ramu007

dear sir/madam,
i am working in java/j2ee. In my project using javascript as client side validation. my project have single but multiple tabs like mycomputer properties in out PC.each tab having a form.i want validate every tab and all form data's will submit in last tab.if any field having invalid data(consider third tab have phoneno field but i entered charcters.the field i must enter numbers). now i am in last tab at submit the form.the cursor automatically go to third tab in particular field.how can to do?

Moved to Javascript forum.
P.S Welcome to TSDN.
ashsa's Avatar
Member
 
Join Date: Feb 2007
Location: New Delhi, India
Posts: 43
#3: Aug 6 '07

re: Javascript multiple tabs form validation


Quote:

Originally Posted by ramu007

dear sir/madam,
i am working in java/j2ee. In my project using javascript as client side validation. my project have single but multiple tabs like mycomputer properties in out PC.each tab having a form.i want validate every tab and all form data's will submit in last tab.if any field having invalid data(consider third tab have phoneno field but i entered charcters.the field i must enter numbers). now i am in last tab at submit the form.the cursor automatically go to third tab in particular field.how can to do?

Could you please post a sample of your code demonstrating how you have implemented your tabs as ??
Reply