Welcome Guest, Not a member yet? Register   Sign In
[solved]post in jquery ui's autocomplete
#4

[eluser]bobbob[/eluser]
In case anyone needs the solution here it is:

Code:
$(function() {
         $( "#tags" ).autocomplete({
            source: function(request, response) {
                $.ajax({
                  url: "<?php echo site_url('controller/getQuoteArray'); ?>",
                  data: { term: $("#tags").val()},
                  dataType: "json",
                  type: "POST",
                  success: function(data){
                  response(data);
                  }
                });
              },
            minLength: 3
        });
    });
And of course you need to include ui js and css files.
Great plugin!!


Messages In This Thread
[solved]post in jquery ui's autocomplete - by El Forum - 09-17-2010, 09:34 PM
[solved]post in jquery ui's autocomplete - by El Forum - 09-18-2010, 02:06 AM
[solved]post in jquery ui's autocomplete - by El Forum - 09-18-2010, 11:40 AM
[solved]post in jquery ui's autocomplete - by El Forum - 09-20-2010, 08:16 PM
[solved]post in jquery ui's autocomplete - by El Forum - 10-25-2010, 05:39 AM
[solved]post in jquery ui's autocomplete - by El Forum - 10-25-2010, 06:40 AM
[solved]post in jquery ui's autocomplete - by El Forum - 10-25-2010, 07:57 AM
[solved]post in jquery ui's autocomplete - by El Forum - 10-25-2010, 05:00 PM
[solved]post in jquery ui's autocomplete - by El Forum - 10-25-2010, 05:33 PM
[solved]post in jquery ui's autocomplete - by El Forum - 11-08-2010, 03:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB