Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save csharpforevermore/6069420 to your computer and use it in GitHub Desktop.
Save csharpforevermore/6069420 to your computer and use it in GitHub Desktop.
Select the first child item of a select element
$('select').val($('select>option:nth-child(1)').val());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment