JSFiddle - React, Tailwind, and code Playground

HTML

This is <span class="someclass" style="color:#3C9312">red</span> and <span class="someclass" style="color:#3C9310">green</span> color.

JavaScript

$('.someclass').each(function(){
   alert($(this).css('color'))    
});