Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript jquery提交的表单返回false;迷路不能提交两次?_Javascript_Jquery_Html_Forms - Fatal编程技术网

Javascript jquery提交的表单返回false;迷路不能提交两次?

Javascript jquery提交的表单返回false;迷路不能提交两次?,javascript,jquery,html,forms,Javascript,Jquery,Html,Forms,这很难解释,但似乎我的表单被垃圾回收了,或是其他什么,尽管它的返回false在提交时,如果可能的话,我需要能够多次提交,否则我必须始终刷新页面以重试。。这是绿色按钮使用信用卡/借记卡/礼品卡支付 查看我的网站 在我的chrome控制台中,我得到了这个错误 Uncaught TypeError: $(...).tukivalidator is not a function at HTMLAnchorElement.<anonymous> ((index):358) at

这很难解释,但似乎我的表单被垃圾回收了,或是其他什么,尽管它的
返回false
在提交时,如果可能的话,我需要能够多次提交,否则我必须始终刷新页面以重试。。这是绿色按钮
使用信用卡/借记卡/礼品卡支付

查看我的网站

在我的chrome控制台中,我得到了这个错误

Uncaught TypeError: $(...).tukivalidator is not a function
    at HTMLAnchorElement.<anonymous> ((index):358)
    at HTMLAnchorElement.dispatch (jquery-1.8.2.min.js:2)
    at HTMLAnchorElement.h (jquery-1.8.2.min.js:2)
未捕获类型错误:$(…)。tukivalidator不是函数
在兰开夏。((索引):358)
在htmlanchorement.dispatch(jquery-1.8.2.min.js:2)
在htmlanchorement.h(jquery-1.8.2.min.js:2)

即使
tukivalidator
第一次工作,第二次它不存在或是其他什么。。即使我删除了
tukivalidator
,代码的下一部分也会失败。

jQuery会再次加载。这会导致以前对jQuery的所有引用都中断。考虑在代码库中找出将代码“> >代码>注入DOM中的方法,并解决您的问题。

我知道它是我添加的新代码:代码> $tukbox(“加载”),“braintreegateway.php你能告诉我需要修复什么吗?我想我发现ajax加载的内容中也有jQuery脚本,所以我猜它加载了两次该脚本?@SSpoke似乎完全正确。解决了这个问题,你就会很好!