JSFiddle - React, Tailwind, and code Playground
HTML
<li class="work"><a id="work1" href="index.html">not work</a></li>
JavaScript
alert($("#work1").href();
<li class="work"><a id="work1" href="index.html">not work</a></li>
alert($("#work1").href();