Skip to content

Instantly share code, notes, and snippets.

@epicfaace
Created July 10, 2016 15:34
Show Gist options
  • Save epicfaace/cb3af64120743fecd2cae00fbfd6ffcc to your computer and use it in GitHub Desktop.
Save epicfaace/cb3af64120743fecd2cae00fbfd6ffcc to your computer and use it in GitHub Desktop.
select option text
var arr = new Array;
$($("select").get(2)).children("option").each ( function() {
arr.push ( $(this).text() );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment