JSFiddle - React, Tailwind, and code Playground
HTML
This is <span id="spcolor" style="color:#3C9310">red</span> and <span style="color:#3C9310">green</span> color.
JavaScript
alert($('#spcolor').css('color'));
This is <span id="spcolor" style="color:#3C9310">red</span> and <span style="color:#3C9310">green</span> color.
alert($('#spcolor').css('color'));