chuk-shirley
6/11/2014 - 12:39 AM

jQuery manually hydrate form

jQuery manually hydrate form

$.ajax({
  url:'script.php',
  dataType:'json',
  type:'GET',
}).done(function(response){
  $('#name').val(response.name);
  $('#address').val(response.address);
  $('#city').val(response.city);
  $('#state').val(response.state);
  //...and so on...
});