Add ajax response (html with content) to DOM
I am trying to set up an instant search. I have the ajax call setup. The response is a json string containing the HTML of the searchresults. My question now is, how can I add this to the DOM?
The html is an full table with content.
What I do at the moment is this:
- if (results.errcode == 200) {
- $('div#vrijwilligers').add(results.content);
- }