Why does nothing happen with this code? Where is the mistake? Simple working example (jquery autocomplete and jsonp) + php
<!doctype html> <html> <head> <title>ы</title> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> <script type="text/javascript" src="jquery.autocomplete.js"></script> <script> $(document).ready(function(){ $("#search").keyup(function(){ $("#search").autocomplete({ source: function( request, response ) { alert(1) }, delay:10, minChars:1, maxItemsToShow:10 }); }); }); </script> </head> <body> <form action=""><input type="search" id="search"> <input type="submit"></form> </body> </html>
jquery.autocomplete.js
script in the same folder as the html page? - Mobyman