Skip to content

Instantly share code, notes, and snippets.

@schweigert
Created January 18, 2019 12:23
Show Gist options
  • Save schweigert/64926950d4bf4a49f73ff690e6edd039 to your computer and use it in GitHub Desktop.
Save schweigert/64926950d4bf4a49f73ff690e6edd039 to your computer and use it in GitHub Desktop.
var brazil = document.createElement('option');
brazil.value = '+55';
brazil.appendChild(document.createTextNode('Brazil +55'));
document.querySelectorAll('#countrycode').forEach((select) => select.appendChild(brazil));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment