javascript/jquery how to set more than one attributes
<p>I have this for loop which will append options to that "optlist"; the value will be set to manSel[i][0] and the text to manSel[i][1]; I would also like to set the attribute selected="selected" to all of them. Can I do that in the same loop or should I iterate again throug the options and add that attribute to each one of them. Thanks in advance!</p>

<pre><code>for(var i = 0 ; i&lt;manSel.length; i++){
  optlist.append($('&lt;option/&gt;').attr('value', manSel[i][0]).text(manSel[i][1]));
}
</code></pre>
