JSFiddle - React, Tailwind, and code Playground
by yiminghe
HTML
<div id='t'></div>
<div id='t2'></div>
CSS
#t {
width:100px;
height:100px;
background:red;
opacity:0.1;
filter:alpha(opacity=10);
}
#t2 {
width:100px;
height:100px;
background:red;
opacity:0.1;
filter:alpha(opacity = 10);
}
JavaScript
$(function(){
$('#t').css('opacity','0.2');
$('#t').css('opacity','');
alert($('#t').css('opacity'));
alert($('#t2').css('opacity'));
});