i have this html line:
<nobr title="New" class="testClass">
<h1>ABC</h1>
</nobr>
How can i remove the text inside h1 or remove the whole h1 tag?
my last try:
$("nobr.testClass > h1").text('');
But this dont work
The following removes the h1 element:
$("nobr.testClass > h1").remove();
Though, your code should be working as written. Your error is elsewhere.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With