JSFiddle - React, Tailwind, and code Playground

by mohammadAdil

HTML

<div> <strong> unimportant text here </strong> important text here </div>

JavaScript

jQuery(document).ready(function()
	{
        $("div").contents()[1].nodeValue = "new text";
    });