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