|
-
Oct 10th, 2006, 09:17 AM
#1
Thread Starter
Fanatic Member
Changing textbox color
Hi
how do i change the color of my textbox via ASP?
The code I have is
VB Code:
<tr>
<td class="formText">Weight Tolerance Plus</td>
<td>
<input type="text" disabled name="weight_tolerance_plus" maxlength=10 size=20
value='111' onChange="changeFont(this);">
</td>
<td nowrap class="formText">Maximum Pallet Weight</td>
<td>
<input type="text" name="maximum_pallet_weight" maxlength=10 size=20
value='735' onChange="changeFont(this);">
</td>
</tr>
<tr>
Thanks
** HOLLY ** 
-
Oct 10th, 2006, 11:42 AM
#2
Re: Changing textbox color
Set its style.
style="background-color: Red;"
-
Oct 11th, 2006, 05:56 AM
#3
Thread Starter
Fanatic Member
-
Oct 11th, 2006, 06:17 AM
#4
Re: Changing textbox color
Firstly are you using asp or asp.net?
-
Oct 11th, 2006, 06:18 AM
#5
Fanatic Member
Re: Changing textbox color
can you not set the background color to red in the text-box properties? or is the color going to change at some point?
 Life is one big rock tune 
-
Oct 11th, 2006, 08:00 AM
#6
Thread Starter
Fanatic Member
-
Oct 11th, 2006, 08:14 AM
#7
Re: Changing textbox color
I guess in asp you'd do it something like
VB Code:
'Set to whatever colour you need
dim strStyle = "background-color: Red;"
'...
<input type="text" style=<%=strStyle%>....
-
Oct 11th, 2006, 08:20 AM
#8
Fanatic Member
Re: Changing textbox color
 Life is one big rock tune 
-
Oct 11th, 2006, 08:36 AM
#9
Re: Changing textbox color
 Originally Posted by Valleysboy1978
Although that will change the colour of the text rather than the textbox itself.
-
Oct 11th, 2006, 09:16 AM
#10
-
Oct 12th, 2006, 10:16 AM
#11
Re: Changing textbox color
style="background-color:red;"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|