0

There are many links on this issue but none of them are helping and I am using the below simple JQuery Code, I have tried with CDN too- google CDN, it is giving same error and my autocomplete functionality not working.

Getting this error: Uncaught TypeError: $(...).autocomplete is not a function

Source Code:

`

<script type="text/javascript" >
    $(function () {
        $("#txtSearch").autocomplete({
            source: '@Url.Action("GetStudents")'
        });
    });
</script>`
Debanjan
  • 69
  • 1
  • 8
  • This is thesource code that I am using: – Debanjan Jan 27 '16 at 01:39
  • Please format your code correctly by either wrapping your code in `backticks` or by indenting with 4 spaces. – AMACB Jan 27 '16 at 01:46
  • Please find the formatted Code ` ` – Debanjan Jan 28 '16 at 15:04

1 Answers1

0

Have you included the jquery ui library?

<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
prola
  • 2,793
  • 1
  • 16
  • 15
  • Yes , here is the code that I am using ` ` – Debanjan Jan 28 '16 at 15:03