Created
October 23, 2016 22:18
-
-
Save claudiohilario/853ea81ef7ea9ebe15fc5cc453ad6f7e to your computer and use it in GitHub Desktop.
DropDownList - Get index
This file contains 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
//Java scipt | |
var e = document.getElementById("ListaDistritos"); | |
var itemSelecionado = e.options[e.selectedIndex].value; | |
//JQuery | |
var itemSelecionado = $("#ListaDistritos").prop('selectedIndex'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment