Currently we have a page that returns a partners information that can be found at: http://www.muzak.com/assets/ZipCodeLookup/index.php?zipcode=28037&callback=? (above is an example with the zipcode already added) and we are trying to pull the information and save them in hidden form fields using the following code: var zpcode = document.getElementById('PostalCode').value; jQuery.getJSON("http://www.muzak.com/assets/ZipCodeLookup/index.php?zipcode=" + zpcode + "&callback=?", function(data) { $("#DealerIA_OA").val(''); $("MuzakDealer").val(''); $("#DealerIA_OA").val(data["ia_or_oa"]); $("#MuzakDealer").val(data["name"]); }); }); Code (markup): Any help would be greatly appreciated. Thank you in advance.
Be sure you are getting the callback on your index.php page. Example: print $_GET['callback']. '('.json_encode($data).')';