Welcome Guest, Not a member yet? Register   Sign In
insert to database from value autocomplete

how to make the autocomplete input to the database from the previous result is a province becomes propinsi_id ...
$(this).ready( function() {
                  minLength: 1,
                function(req, add){
                        url: "<?php echo base_url(); ?>index.php/autocomplete/lookup",
                          dataType: 'json',
                          type: 'POST',
                          data: req,
                              if(data.response =="true"){
                 function(event, ui) {
                        "<li>"+ ui.item.id + "</li>"

please am trying to implement this in an auto complete form am working on but am not getting it though please kindly help

Theme © iAndrew 2016 - Forum software by © MyBB