I want the user to click on a button called select. This then selects an option in the dropdownlist. The option it selects must be the one that starts with the first 10 characters of the text in the text box.
这是倒数和案文箱。
<asp:DropDownList runat="server" ID="selDealer"></asp:DropDownList>
<a href="#" class="RemoveLink" >Select</a>
Dealer Name: <asp:TextBox ID="RtnDealerName" runat="server"></asp:TextBox>
At the moment the jscript only does a simple alert to test the select link is working.
<script language="javascript" type="text/javascript">
$(function () {
$(".RemoveLink").click(function () {
alert("Yes");
});
});
</script>
在文字中,从案文的头10个特性开始选择降级办法,是什么。