JSFiddle - React, Tailwind, and code Playground
HTML
<input type="button" value="correct votes text" onclick="correctVotesText()">
<div class="votes">
<b>5</b> Votes
<a id="vote-' + element_id +'" href="#" class="vote-btn"></a>
</div>
<div class="votes">
<b>1</b> Votes
<a id="vote-' + element_id +'" href="#" class="vote-btn"></a>
</div>
<div class="votes">
<b>2</b> Votes
<a id="vote-' + element_id +'" href="#" class="vote-btn"></a>
</div>
JavaScript
function correctVotesText() {
$("div.votes").find("b:first").each(function() {
this.nextSibling.data = ($(this).text() == "1") ? " Vote" : " Votes";
});
}