I am attempting to use the jQuery autocomplete widget which I have used previously on earlier versions of jQuery.
With the code I'm currently using (and jQuery UI 1.8.5) I am getting the following error when typing a letter in the initialised autocomplete input field:
jquery-ui-1.8.5.custom.min.js:320Uncaught TypeError: Property 'source' of object #<an Object> is not a function
The autocomplete code is basically the jQuery example documentation (added to my page with other JS on it):
<input type="text" id="example" />
<script type="text/javascript">
var data = "Core Selectors Attributes Traversing Manipulation CSS Events Effects Ajax Utilities".split(" ");
$("#example").autocomplete(data);
</script>
Anyone have any suggestions?
Thanks in advance.
I think that should be:
$("#example").autocomplete({ source: data });
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With