I use jquery to put html dynamically but it is not working…
Here is what I have tried
$("#root").innerHtml("<h1>Hello</h1>")
Answer
You should not use innerHtml
instead use html()
You can do as below
$("#root").html("<div>Hello</div>")
I use jquery to put html dynamically but it is not working…
Here is what I have tried
$("#root").innerHtml("<h1>Hello</h1>")
You should not use innerHtml
instead use html()
You can do as below
$("#root").html("<div>Hello</div>")