这个问题要怎么解决啊!dropdownlist可选可填
<asp:TextBox ID="tb1" runat="server" style="width:200px;position:absolute; margin-top:-13px" MaxLength="10"></asp:TextBox>
<asp:DropDownList ID="ddl1" runat="server" Style="width:205px; margin-top:-13px; Clip:rect(auto auto auto 186px); position:absolute"
onchange="document.getElementById('tb1').value = this.options[this.selectedIndex].text" >
<asp:ListItem>张三</asp:ListItem>
</asp:DropDownList>
这是一个dropdownlist可选可填的例子,这是的问题是,“张三”怎么也选不上去,如果把它改成多项选择的,如
<asp:ListItem>张三</asp:ListItem>
<asp:ListItem>李四</asp:ListItem>
<asp:ListItem>王五</asp:ListItem>
这样 第一次选择 “张三”还是选不上,只有先选择了其他项,并保持文本框不为空的情况下,才可以选择“张三”
而我希望的是 无论在什么情况下,都 可以选中第一个词“张三”
大侠快指点啊!