JSFiddle - React, Tailwind, and code Playground

by yiminghe

HTML

<div id='t'></div>

CSS

#t {
            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'));
        });