Questions tagged by "drop-down-menu"


0
 bounty
2
answers
how to get the selected index of the asp:DropDownList control using javascript
10 years ago • support_man
I have an asp.net page, and I want to hide a div on the page when the index of the asp:DropDownList is 0 using javascript. I know how to hide the div but I do need help on how to get the selected index of the asp:DropDownLists using javascript. This is what I have in the javascript: function hideDiv() { var drpCampDock = document.getElementById('drpListCampaignDocketTemplate'); var drpCampType = document.getElementById('drpCamp
1 from 1