Jquery autocomplete plugin not working in asp.net user control
Hello,
I am trying to use Jquery autocomplete plugin in my .NET user control page. It is not working, I keep getting this error: "Object doesn't support this property or method"
If I place the same snippet in a MVC page or a regular aspx web forms page, it works fine.
Code snippet:
<
script
type
="text/javascript"
language
="javascript">
$(document).ready(
function
() {
$("#<%=txtBox.ClientID%>").autocomplete("Test.ashx", {
extraParams: {
searchType:
"test"
}
});
})
</script>
<
asp
:
Textbox
runat
="server"
id
="txtBox"
name
="txtBox"
type
="text"
size
="50">
</
asp
:
Textbox
>
Please advice.
Thanks.