Autocomplete with Ajax more options than only ID and Name?


#21
change:function(value){
  app.data.city=value[0];
  // or
  // localStorage.setItem('city',JSON.stringify(value[0]))
  ...
  ...
}

later

console.log(app.data.city)
// or
// JSON.parse(localStorage.getItem('city'));

#22

thanks I think using app.data work the best for all things… big thanks