Skip to main content
deleted 3 characters in body
Source Link
Krish R
  • 22.7k
  • 7
  • 54
  • 60

Can you try this,

  $.post("koord.php", { puna_adresa: adresa, mjesto: mjesto }, function (result) { $('#coords').val(result);  }); 

Another way:

 $.post("koord.php", $( "#testform" ).serialize(), function (result) { $('#coords').val(result); }); 

Ref: http://api.jquery.com/jQuery.post/

Can you try this,

  $.post("koord.php", { puna_adresa: adresa, mjesto: mjesto }, function (result) { $('#coords').val(result); }); 

Ref: http://api.jquery.com/jQuery.post/

Can you try this,

 $.post("koord.php", { puna_adresa: adresa, mjesto: mjesto }, function (result) { $('#coords').val(result);  }); 

Another way:

 $.post("koord.php", $( "#testform" ).serialize(), function (result) { $('#coords').val(result); }); 

Ref: http://api.jquery.com/jQuery.post/

Source Link
Krish R
  • 22.7k
  • 7
  • 54
  • 60

Can you try this,

 $.post("koord.php", { puna_adresa: adresa, mjesto: mjesto }, function (result) { $('#coords').val(result); }); 

Ref: http://api.jquery.com/jQuery.post/