Hello
I am looking to change the color of one combobox when the value of another combobox changes.
i.e. cmbOne is changed from "Select..." to "Entered Date", on the client side, I'd like to change the backcolor of cmbTwo to red to show it is now required... Any examples of how to do that?
This is the script I am using now... it can not resolve the $find("cmbCompare") statement in line 4, even though that control exists on the page...I have this hooked up to the "onselectedindexchanged" client event.
Thanks for any help!
Harold
I am looking to change the color of one combobox when the value of another combobox changes.
i.e. cmbOne is changed from "Select..." to "Entered Date", on the client side, I'd like to change the backcolor of cmbTwo to red to show it is now required... Any examples of how to do that?
This is the script I am using now... it can not resolve the $find("cmbCompare") statement in line 4, even though that control exists on the page...I have this hooked up to the "onselectedindexchanged" client event.
<script language="javascript" type="text/javascript"> | |
//<![CDATA[ | |
function SetCompareRed(sender, eventArgs) { | |
var compareChoice = $find("cmbCompare"); | |
compareChoice.BackColor = "Red"; | |
} | |
//]]> | |
</script> |
Thanks for any help!
Harold