我想在提交表单后更改文本。我希望当我点击submit to friend 1,然后文本更改为Invited to Your friend,而不是更改submit to friend 2。当我单击submit to friend 2时,更改submit to friend 2的文本。<script src="https://ajax.googleapis.com/ajax/libs
我有一个表单,其中有一个文本输入字段和一个按钮。在submit表单中,我从文本字段user中获取值并对ajax.php进行ajax调用,然后让服务器返回userID。服务器确实返回了一个值,如控制台中所示。但是我不确定为什么ajax调用在提交表单后对每个请求都会失败。为了获得成功,我可以纠正或更改哪些内容?form').submit(function(e) {
var searc