Creating Objects with jQuery: String Concat or Methods?
<p>When dynamically creating DOM objects in jquery is it better to use pure string concatenation or should I use the jquery methods? Which is the more "jQuery way"?</p>

<pre><code>var tr = $('&lt;tr/&gt;').addClass('foobar');
// or    $('&lt;tr class="foobar"/&gt;');

tr.append('&lt;td&gt;' + someobj.property + '&lt;/td&gt;');
// or ...
tr.append($('&lt;td/&gt;').text(someobj.property));
</code></pre>
