Click here to Skip to main content
15,899,126 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is it possible to get the value of an asp:dropdownlist in javascript. I need
to get that value for getting the value of the filds from other table in database and show in adata list?
Posted
Updated 23-Feb-11 16:32pm
v2

1 solution

C#
var e = document.getElementById("dropdown1"); // select element
var selValue = e.options[e.selectedIndex].value;


Using JavaScript to handle drop-down list selections[^]
 
Share this answer
 
Comments
fjdiewornncalwe 23-Feb-11 9:00am    
+5. Good answer and great link.
Sergey Alexandrovich Kryukov 23-Feb-11 22:32pm    
Agree, 5
--SA
Yusuf 23-Feb-11 22:45pm    
good link
Monjurul Habib 23-Feb-11 23:31pm    
+5. nice answer and link

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900