Populate dropdown select with array-with multiple options- using jQuery
<p>So I'm trying to populate a dropdown with the states, the value for the option should be the two characters value, and the text for the option should be the full state's name, using the code below is returning a value of 0,1,2,3... and returning all the options in the var as the text.</p>

<pre><code>var states = ["Select State","","Alabama","AL","Alaska","AK","Arizona","AZ","Arkansas","AR",...];
$.each(states, function(val, text) {
    $('#selector').append( $('&lt;option&gt; &lt;/option&gt;').val(val).html(text) )
    });
</code></pre>
