I want to have different background images for different conditions (JS,HTML,CSS). For E.g: if(n=1),then image 1 else if(n=2),then image 2 etc.
Try creating a Css class ..After that you can set it to your control from javascript..
document.getElementById("MyControl").className = "MyClass";
In the css class MyClass you can set the background image..You can create another css class with different background image and set it according to the conditions..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With