Computing.Net > Forums > Programming > change text box color when > 250lb

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

change text box color when > 250lb

Reply to Message Icon

Name: AllenD
Date: October 15, 2007 at 10:02:47 Pacific
OS: windows
CPU/Ram: 512
Product: dell
Comment:

I have a text box where users enter their weight. I want to know is there a way when the weight is over 250lb the text box should change color any color yellow, red etc I am using front page.

<input type="text" name="Weight" size="5" style="font-size: 10pt; font-family: Times New Roman">



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: October 15, 2007 at 19:09:38 Pacific
Reply:

JavaScript's the way to go here.
Crude example:
< input type="text" name="Weight" size="5" style="font-size: 10pt; font-family: Times New Roman" onBlur="if(value > 250) {style.color='red'}">


0

Response Number 2
Name: AllenD
Date: October 16, 2007 at 06:55:29 Pacific
Reply:

Thank you Razor2.3, it worked!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Turbo C Batch to Ping Help



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: change text box color when > 250lb

VB6....Nul value in text box www.computing.net/answers/programming/vb6nul-value-in-text-box/5524.html

Populating a text box with asp www.computing.net/answers/programming/populating-a-text-box-with-asp/8865.html

vb (RICH TEXT BOX) www.computing.net/answers/programming/vb-rich-text-box/1942.html