Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(document).ready(function() {
- $('#input').autocomplete({
- source: function(query, response) {
- $.ajax({
- url: "/autocomplete.cfc?method=queryNames&returnformat=json",
- dataType: "json",
- data: {
- searchPhrase: query.term
- },
- success: function(result) {
- response(result);
- }
- });
- }
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement