0
我想知道如何更改CompletionListItemCssClass
一個ASP AutoCompleteExtender:AutoCompleteExtender在JavaScript中,因爲我需要在每次更改我的組合框 這個指數時間chnage這是我的代碼: ajaxtoolki:改變CSS:從JavaScript
<asp:AutoCompleteExtender ID="autocom" ClientIDMode="Static" runat="server" CompletionSetCount="10" CompletionListItemCssClass="toolkitEnglish"
EnableCaching="true" MinimumPrefixLength="1" TargetControlID="txtBoxWord" ServicePath="~/translator/AutoComplete.asmx" ServiceMethod="GetCompletionList" ></asp:AutoCompleteExtender>
我試過,但它不工作:
document.getElementById('autocom').CompletionListItemCssClass = "toolkitEnglish";