Hi I have a scenario where I need to change the image of the button in Radinput control based on some criteria.
I have the following styles defined .MyButton { background:url('Error.png') 0 0 no-repeat !important; }
.MyButton_1 { background:url('SupportsNotes.png') 0 0 no-repeat !important; background-color:Red !important }
And my control is
Now if I enter some value that is out of range or in case of dates if the date is future date I want to change the image in the button to 'SupportsNotes.png' from MyButton_1 CSS class. I am unable to find any method to set the css class for the button dynamically.
I want to do this in javascript. Can you please help me on this?
Thanks.
Regards, Ramya