ajax返回的信息在其他标签能正确显示,但在INPUT输入框却显示AJAX返回的HTML源码
//下面这句在DIV标签里能正确显示
document.getElementById("selected_airport").innerHTML=xmlhttp.responseText;(可以正确显示文本内容“雅加达(首都)JKT/CGK”
//下面这句在INPUT标签的输入框里显示的是AJAX返回的源码(HTML)
$('#selected_airport1').val(xmlhttp.responseText);
显示的源码是这样的 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>selected_airport</title></head><body>雅加达(首都)JKT/CGK</body></html>[/color]