title: Best way to create new DOM elements
body: <p>Using jquery is it better to create a DOM element like this:-</p>
  
  <pre><code>function create(options)
  {
       $('&lt;form action="' + options.action + '"&gt;&lt;/form&gt;');    
  }
  </code></pre>
  
  <p>Or like this:</p>
  
  <pre><code>function create(options)
  {
       $form = $('&lt;form&gt;&lt;/form&gt;');
       $form.attr('action',options.action); 
  }
  </code></pre>
  
  <p>This may be a matter of opinion. I feel that the second way gives more clarity but I suspect it is less efficient...</p>