JSFiddle - React, Tailwind, and code Playground
by luka kupunia
HTML
<a href="" target="_blank" class="one">1</a>
<a href="" class="two">2</a>
JavaScript
var a = $('.one').attr('target');
var b = $('.two').attr('target');
console.log(Boolean(a), Boolean(b))