beaniebear
Programmer
<aspropDownList ID="ddlName runat="server" >
<asp:Button ID="btnConfirm" runat="server" Text="Go" onclientclick="ChangePage()"/>
I have a ddl and a button on a page. When the user clicks the button the javascript needs to check what has been selected in the ddl and redirect to the appropriate page.
The javascript works fine except can't get it to find the drop down.
var ControlName = document.getElementById("ddlName");
The javascript is in the masterpage. Will this cause any issues? Any help much appreciated.
<asp:Button ID="btnConfirm" runat="server" Text="Go" onclientclick="ChangePage()"/>
I have a ddl and a button on a page. When the user clicks the button the javascript needs to check what has been selected in the ddl and redirect to the appropriate page.
The javascript works fine except can't get it to find the drop down.
var ControlName = document.getElementById("ddlName");
The javascript is in the masterpage. Will this cause any issues? Any help much appreciated.