jquery - how to acccess the asp.net dropdownlist selected item value from javascript -
How to access the asp.net dropdownlist selectitem value from javascript? I have follwing code where I want to use dropdownownlist selectitem value in javascript, and that query is another page
function example () {var e = $ find ("ExampleDropDownList"); Var strUser = e.options [e.selectedIndex] .value; Warning (strUser); Window.radopen ("ExampleDetail.aspx? Id =" + Strucer, "Delog"); return false; } & Lt; Telerik: RadComboBox id = "ExampleDropDownList" runat = "server" & gt; & Lt; / Telerik: RadComboBox & gt; ASP.Net control presents back in plain HTML controls. When using JavaScript, you can actually call an object as you normally would have a dropdown. The list of dropdowns will identify your redcombboxes.
var myDropDown = document.getElementById ('ExampleDropDownList');
And you will have access to your dropdown list.
Comments
Post a Comment