我的Javascript功能
function loadXMLDoc(para,div,ceep)
{ coode="q="+ceep;
$("#"+div).html('<img src="ajax-loader.gif"> Loading...');
$.ajax({
type: "GET",
url: JSon.php,
data: coode,
datatype: "json",
success: function(msg){
alert(msg.city);
$("#"+div).html(msg);
}
});
}
我的JSon.php文件有
{"id":"1","userid":"2","name":"home","address":"Room 440 Akdeniz","city":"Famagusta"}
如何检索内容JSon数据以动态设置文本框值?