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
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">
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
Summary: I have two text boxes in Visual Basic6 .How can i restrict the user if he press enter key in the text box to switch to next text box when Text1 is enpty . NUL value... My code is as under pleas...
Summary: Hi, I'm making a website where you have to log in. It reads your information from a database and checks your password etc. When it has logged you in, you are taken to your account settings. Here you c...
Summary: sir, as i asked that if i want to change several colors at a time in a textbox the reply i not enough ex: if the rich text box contains two strings namely "hello world " i want hello in o...