Is there a way to dynamically change the CompletionListItemCssClass
attribute of an asp:AutoCompleteExtender using JavaScript every time the index of a combobox is changed?
Here is the code snippet:
ajaxtoolkit:
<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>
I attempted the following but it did not work:
document.getElementById('autocom').CompletionListItemCssClass = "toolkitEnglish";