I have a requirement to change a background color in RadNumericTextBox to yellow if the value is greater than 5, otherwise use the color defined in the css. How to achieve that?
I used the script below but get_element() returns a reference to a hidden input element.
I used the script below but get_element() returns a reference to a hidden input element.
| <script type="text/javascript"> |
| function ClientValueChanged(sender, args) { |
| if (args.get_newValue() > 5) |
| sender.get_element().style.backgroundColor = "#ffee00"; |
| else |
| sender.get_element().style.backgroundColor = ""; |
| } |
| </script> |
