i have fields:
<%= f.label :address %>
<%= f.text_field :address %>
<%= f.label :city %>
<%= f.text_field :city %>
<%= f.label :state %>
<%= f.text_field :state %>
<%= f.label :country %>
<%= f.text_field :country %>
and script:
$("#addr").focusout(function() {
var param = $("#user_address").val(开发者_高级运维);
// code
});
what code must be in function to redraw map with new address?
you should check geocoder or here
精彩评论