i want to lookup a city and autocomplete one string with "city, state, 
country", but i need make when no result and the user put something unknow like 
"city, state, country" the object autocomplete call a function that fill the 
hiddens fields splited (,).

Heres an aproach

function findValue(li) {
 // if coming from an AJAX call, let's use the CityId as the value
 if( !!li.extra ) {
  var ciudad = li.extra[0];
  var provincia = li.extra[1];
  var pais = li.extra[2];
 }
 else
 {
  var row = li.split(",");
  var ciudad = row[0];
  var provincia = row[1];
  var pais = row[2];
 }

 $("#provincia_auto").val(provincia);
 $("#pais_auto").val(pais);

 $("#ciudad").val($.trim(ciudad));
 $("#provincia").val($.trim(provincia));
 $("#pais").val($.trim(pais));

 var sValue = li.selectValue;
}

I getting problem because dont exist a function "onblur" implemented in the 
class.

thx

Sry for my english

--
Estoy usando la versión gratuita de SPAMfighter para usuarios privados.
Ha eliminado 2578 correos spam hasta la fecha.
Los usuarios de pago no tienen este mensaje en sus correos.
Obtenga SPAMfighter gratis aquí: http://www.spamfighter.com/les

Reply via email to