Hi I have a simple html structure
Title text inner text
What I want is to replace only the te
Using jQuery.contents() you can replace the nodeValue similar to this:
nodeValue
$("h1").contents()[0].nodeValue = "new text ";
DEMO using jQuery.contents() to replace a text node
jQuery.contents()