Name: AllenD Date: October 15, 2007 at 10:02:47 Pacific Subject: change text box color when > 250lb OS: windows CPU/Ram: 512 Model/Manufacturer: 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">
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'}">
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE