title: is it wrong to use jquery to output html tags?
body: <p>Just wondered is it bad practice to output html tags with javascript. For example say I had a table and on the page load an ajax request gets the data to populate it. For each row of data I'm going to need to output another row, something like this:</p>
  
  <pre><code>$('#results').html('&lt;tr&gt;&lt;td&gt;'+data.people[i]['name']+'&lt;/td&gt;&lt;td&gt;'+data.people[i]['age']+'&lt;/td&gt;&lt;td&gt;'+data.people[i]['gender']+'&lt;/td&gt;&lt;/tr&gt;');
  </code></pre>
  
  <p>Is it bad to do this? </p>