Skip to content

Instantly share code, notes, and snippets.

@sdvg
Created November 29, 2012 15:34
Show Gist options
  • Save sdvg/4169833 to your computer and use it in GitHub Desktop.
Save sdvg/4169833 to your computer and use it in GitHub Desktop.
quick-select the right option from a large dropdown with timezones
  1. Select select-element in dev tools
  2. execute:
var options = $0.options;

for(var i=0; i<options.length; i++) {
  if(options[i].text.match(/berlin/i)) {
    options[i].selected = true;
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment