Last active
May 24, 2019 16:18
-
-
Save chamatt/210151c06d1ebddfcc6937d444d9027a to your computer and use it in GitHub Desktop.
Parse value and label out of a select
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JSON.stringify(Array.from(HTMLCollection).map((opcao) => ({ value: opcao.value, label: opcao.label}))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment