Skip to content

Instantly share code, notes, and snippets.

@machuga
Created January 20, 2012 19:25
Show Gist options
  • Save machuga/1649112 to your computer and use it in GitHub Desktop.
Save machuga/1649112 to your computer and use it in GitHub Desktop.
$('#myOptions').click(function(e) {
e.preventDefault();
$('#mappings .mapping:not(.autoMapped) select').each(function() {
$('option:last',$(this)).attr('selected', true);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment