Is this possible? I am using javascript, AJAX and JSON to pull data from a Java servlet and i'd like to display elements of the javascript array I create within my HTML (as opposed to creating large chunks of HTML within javascript). I know I can muck up my html using:
<script>document.write(arrayVar[0].firstName);</script>
But i'd really like to avoid that. In the past I would use JSTL and EL tags when pulling data from the server, but is there a similar way to do this purely with javascript? I wouldn't be opposed to using an external library - I just don't know of any because I don't have a ton of experience with JS.