User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 402,430 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,966 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 1074 | Replies: 4
Reply
Join Date: Apr 2005
Location: Kerala
Posts: 156
Reputation: hbmarar is an unknown quantity at this point 
Rep Power: 4
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

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 1,590
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

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

  #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  
Join Date: Apr 2005
Location: Kerala
Posts: 156
Reputation: hbmarar is an unknown quantity at this point 
Rep Power: 4
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

  #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  
Join Date: Dec 2004
Posts: 1,590
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

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

  #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  
Join Date: Apr 2005
Location: Kerala
Posts: 156
Reputation: hbmarar is an unknown quantity at this point 
Rep Power: 4
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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 2:29 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC