How Do I Replace/Change The Heading Text Inside , Using jquery?
How Do I Replace/Change The Heading Text Inside
, Using jquery?
How do I change/replace the
If you can select it, you can manipulate it.
$(".head h3").html("your new header");
But as others mentioned, you probably want head div to have an id.
you don’t – not like this.
give an id to your tag , lets say it looks like this now :
then set the value like that :
myHeader.innerText = "public offers";
Just use method “text()”.
The .text() method cannot be used on form inputs or scripts. To set or
get the text value of input or textarea elements, use the .val()
method. To get the value of a script element, use the .html() method.