I have a css:
.class1 { background: #fff }
What I want is:
.class2 { background: rgba(255,0,0,0.5) };
Is there any way that I can use ONLY JavaScript to modify the background property of .class1, to make it has a opacity:.5 effect?
For example, I want something like this:
$('.class1').css('background-opacity', '.5');
Can anyone help?
Thanks