title: Add name attr to generated <span>
body: <p>I am using this line of code: </p>
  
  <pre><code>initWords($('&lt;span&gt;&lt;/span&gt;').addClass('word').text(data.word).appendTo('#wordBank'));
  </code></pre>
  
  <p>Along with creating a <code>&lt;span class="word"&gt;word&lt;/span&gt;</code> I want too add name="WORD HERE" to the  tag.</p>
  
  <p>I see that <code>$(".word").attr("name")</code>, but is this how I set the attr name to the <code>span.word</code>?</p>