<script src="../../js/jquery.autocomplete.js" type="text/javascript"></script>
var ary2 = new Array();
$("#RemainsState option").each(function (index) {ary2.push($(this).text());
});
$("#txtRemainsState").autocomplete(ary2, {
minLength: 0,
matchContains: true,
minChars: 0,
max: 10,
width: 170,
scrollHeight: 200
});
<asp:TextBox ID="txtRemainsState" runat="server" CssClass="txt" Width="170px" datacol="no"
Style="background-image: url('../../Themes/Images/16/dropdownbtn.png'); background-position: right center; background-repeat: no-repeat;"
err="遗体状态" checkexpession="NotNull"></asp:TextBox>
<span style="display: none;">
<select id="RemainsState" class="select" runat="server" style="width: 170px">
</select></span>