SyntaxFix
Write A Post
Hire A Developer
Questions
To put text, use .text('text')
.text('text')
If you want to use .html(SomeValue), SomeValue should have html tags that can be inside a div it must work too.
.html(SomeValue)
Just check your script location, as farzad said.
Reference: .html and text