jquery write html to body





Using jQuery to construct new elements is easy, but it has several downsides. Most importantly, while its easy to write this code its hard to read it.var html Mustache.render(template, data) ("body").append(html) You can try this example on jsFiddle. Nothing to show. Find file. Copy path. jquery-write/example.html. Fetching contributors By comparing a simple "Hello, World!" program in both JavaScript and jQuery, we can see the difference of how theyre both written.Delete the current