Pages

Saturday, March 24, 2012

how to get selected item from dropdownlist in javascript


var ddl=document.getElementById ("<%=DropDownList1.ClientID%>");
var text=ddl.options[ddl.selectedIndex].text;
alert(text); 

No comments:

Post a Comment