Skip to content

Instantly share code, notes, and snippets.

@wjurkowlaniec
Last active August 29, 2015 13:56
Show Gist options
  • Save wjurkowlaniec/9305538 to your computer and use it in GitHub Desktop.
Save wjurkowlaniec/9305538 to your computer and use it in GitHub Desktop.
//get VALUE/TEXT of select from html, to insert in format ('val','text'),
$('#SELECT_ID').children().each(function(index){console.log("('"+$(this).val() + "', '" + $(this).text()+ "'),");})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment