JSFiddle - React, Tailwind, and code Playground
by Trisox
HTML
<li><a href="#">ignore this</a>(137)</li>
JavaScript
var text = $('li').clone().find('a').remove().end().text();
alert(text);
by Trisox
<li><a href="#">ignore this</a>(137)</li>
var text = $('li').clone().find('a').remove().end().text();
alert(text);