Why is not working?

Why is not working?

Hey dudes, my english is very bad but i need help

Im using jquery UI autocomplete plugins with JSON data and its not working .... this is my code



  1.     $("#txtCliente").autocomplete({
  2.         dataType: 'JSON',
  3.         source: function(request, response) {
  4.             jQuery.ajax({
  5.                 url: "citas/acciones",
  6.                 type: "post",
  7.                 dataType: "json",
  8.                 data: {
  9.                     action: 'buscarCliente',
  10.                     cliente: request.term
  11.                 },
  12.                 success: function(data) {
  13.                     response(jQuery.map(data, function(item) {
  14.                         return {
  15.                             value: item.cal_nombre
  16.                         }
  17.                     }))
  18.                 }
  19.             })
  20.         }
  21.     })   
OK this work, the xhr request is send but the json data is not show in the textfield

  1. {"id_cliente":["29266","29267","29268","29269","29270","29271","29272","29273","29274","29275"],"cal_nombre":["EMILIO PUEBLA SORIANO","STEVEN ROTSTAIN ZIMMER","TEOBALDO CAVALCANTE LEAL","JORGE BELMONT AGUERO","PABLO ZIMMERMANN MUJICA","MARIO POTESTA MARTINEZ","MARIA MAYORGA VALDEZ","LUIS CADENA SARMIENTO","ENRIQUE PRADO LOPEZ DE ROMAÑA","RICARDO TEULLET PIPOLI"]}