JSFiddle - React, Tailwind, and code Playground
HTML
<div><button id="clickMe">Click Me!</button></div>
<ul><li class="det_price">
<a href="/designer/customize/278258?dpid=1">Printing</a> from $10
</li></ul>
JavaScript
$('#clickMe').click(function ()
{
var rnotwhite = /\S/;
$('li.det_price').contents().filter(function()
{
return this.nodeType === 3 && rnotwhite.test($(this).text());
}).text(function (i, text)
{
this.replaceWholeText(text + ' replaced');
});
});