|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have a form, with a check box and three text fields.
If i tick the check box, i want the text in those fields to go red. If i de-select the checkbox, the text in those same fields go back to black. Is there a code for this? Thanks in advance. ![]() |
|
#2
|
||||
|
||||
|
You can do this easily with JavaScript.
Create a CSS class that creates red text and whatever else you would like changed. Then add an event that fires when a checkbox is checked. This function should change the element's class to the red alternative. Deselecting would then change it back to it's normal display class.
__________________
Scripting problems? Windows questions? Ask the Windows Guru! Stay up to date with all of my latest content. Follow me on Twitter! Help us help you! Post your exact error message with these easy tips! |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > Simple Question about conditional formatting |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|