<html>
<script>
function SetYGXZ()
{
document.getElementById('<%=txtYGXZ.ClientID %>').value=document.getElementById('<%=ddlYGXZ.ClientID %>').value;
}
</script>
<body>
<div style="position: relative;">
<span style="margin-left: 132px; width: 18px; overflow: hidden;">
<asp:DropDownList ID="ddlYGXZ" runat="server" Style="width: 150px; margin-left: -132px"
οnchange="javascript:SetYGXZ();">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
</asp:DropDownList>
</span>
<asp:TextBox ID="txtYGXZ" runat="server" Style="width: 133px; position: absolute;
left: 0px;">
</asp:TextBox>
</div>
</body>
</html>
ASP.NET 可编辑的下拉框(DropDownList)
最新推荐文章于 2014-08-11 16:10:00 发布