JSFiddle - React, Tailwind, and code Playground

by igalst

HTML

<a href="http://www.google.com/">LINK 1</a>

<a href="http://www.google.ru/">LINK 2</a>

CSS

a {
    color: blue;
}

a:visited {
    color: red;
}

JavaScript

$("a").each(function() {
    var link = $(this);
    console.log( link.css("color")  );
});