form validation_valkue retaining and changing the color of the labe not entered

Reply

Join Date: Apr 2005
Posts: 183
Reputation: hbmarar is an unknown quantity at this point 
Solved Threads: 0
hbmarar's Avatar
hbmarar hbmarar is offline Offline
Junior Poster

form validation_valkue retaining and changing the color of the labe not entered

 
0
  #1
Nov 11th, 2005
hi,

I would like to know how to do it and request for help with a small form and the following validatin.

I wold like to have a validation in which the form is submitted and if the for mis not validated i would like to change the color of the text or any similiar effect with the other enterd values retained.

Is this possible? would anyone share with me how this could be done.

Thanking you in advance, I remain

Harish
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: form validation_valkue retaining and changing the color of the labe not entered

 
0
  #2
Nov 11th, 2005
I would suggest that you define a CSS class for erroneous form elements. Then in your validation script, alter the class for elements that didn't pass. The validation function should simply "return false" to cancel the form submission. The form data will be retained automatically.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 183
Reputation: hbmarar is an unknown quantity at this point 
Solved Threads: 0
hbmarar's Avatar
hbmarar hbmarar is offline Offline
Junior Poster

Re: form validation_valkue retaining and changing the color of the labe not entered

 
0
  #3
Nov 11th, 2005
hi,

I do have an average knoweldge of this combination.I would like to learn and use it for my need.Would you mind (I should not be asking so) if you could give me a form with one label and input element and the css part of the file ,It would be great help as i could learn and build my form on that logic.

Hope you find me reasonable and oblige

Wishing you a nice time

Harish
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: form validation_valkue retaining and changing the color of the labe not entered

 
0
  #4
Nov 11th, 2005
Yes, that's a perfectly reasonable request. Others may feel freel to chime in with an example... if not, then I'll work something up this weekend.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 183
Reputation: hbmarar is an unknown quantity at this point 
Solved Threads: 0
hbmarar's Avatar
hbmarar hbmarar is offline Offline
Junior Poster

Re: form validation_valkue retaining and changing the color of the labe not entered

 
0
  #5
Nov 11th, 2005
hi,

Thanks a lot and I would hold off this for I would like to use yours logic.

Thanking you once again for the consideration and concern and wishing you a nice weekend , i remain

Harish
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC