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? I am using Telerik controls, but I have seen people having this error with or without these controls.
This is the script I am using now... it can not resolve the $find("<$#cmbCompare.ClientID%>") statement in line 4, even though that control exists on the page...I have this hooked up to the "onclientselectedindexchanged" client event. The problem is that when I look at the generated code in the FoxFire tool "FireBug", the code on line 4 gets evaluated to |
| var compareChoice = $find(""); |
Then when I click on the combobox this is attached to, the error is "compareChoice is null"...
| 1 | [script removed]
| | 2 | // | | 3 | function SetCompareRed(sender, eventArgs) { | | 4 | var compareChoice = $find("<$#cmbCompare.ClientID%>"); | | 5 | compareChoice.BackColor = "Red"; | | 6 | } | | 7 | //]]> | | 8 | [script removed] |
Thanks for any help!
Harold |