title: Is setting id with native javascript faster than with jQuery?
body: <p>The two ways I know to set the id of an element in javascript are as follows:</p>
  
  <pre><code>var myDiv = document.createElement('div');
  $(myDiv).attr('id', 'myDiv');
  
  var myDiv = document.createElement('div');
  myDiv.id = 'myDiv';
  </code></pre>
  
  <p>I'm guessing the second one is better because it doesn't use jQuery, is this true?</p>