我试图让这段代码正常工作,但它给了我一个错误。它似乎并没有执行。jQuery.post给出错误
jQuery.post("getResults.php", {id:id} , function(data)
{
jQuery("select#kDate").removeAttr("disabled");
jQuery("select#kDate").html(data);
})
.success(function() { alert("second success"); })
.error(function() { alert("error"); })
.complete(function() { alert("complete"); });
});
任何帮助,将不胜感激。
你并不需要2层成功的功能.. –
我发现这里的代码,并添加它来尝试和工作发生了什么事情在我的代码。 – bobthemac
通过在错误函数中记录传递的参数来查找有关错误的更多信息。另外:Firebug说什么? – madflow