简体   繁体   English

jQuery表单提交已取消

[英]jquery form submission canceled

am using dynamic form submission using jquery when form is submitted the error shown 我在提交表单时使用jquery使用动态表单提交显示错误

"Form submission canceled because the form is not connected" “由于未连接表单而取消了表单提交”

$('<form method="POST" action="http://localhost/almadar/appointment-form">
 <input type="hidden" name="dept" value="'+dept+'">
 <input type="hidden" name="doctor" value="'+doctor+'">
 <input type="hidden" name="hours" value="'+hours+'">'
).submit();

Insert the form in the dom, then submit: 将表格插入dom,然后提交:

var $form = $('<form method="POST" action="http://localhost/almadar/appointment-form"><input type="hidden" name="dept" value="'+dept+'"><input type="hidden" name="doctor" value="'+doctor+'"><input type="hidden" name="hours" value="'+hours+'">')
.appendTo('body')

$form.submit()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:由于表单未连接,表单提交被取消 - Error: Form submission canceled because the form is not connected 表单提交已取消,因为该表单未在GWT上连接 - Form submission canceled because the form is not connected on GWT 由于未连接表单,因此取消了表单提交 - Form submission canceled because the form is not connected 由于未连接表单,因此取消了提交表单的操作 - Getting Form submission canceled because the form is not connected Angular 2:表单提交因表单未连接而取消 - Angular 2: Form submission canceled because the form is not connected React - 由于表单未连接而取消表单提交 - React - Form submission canceled because the form is not connected 表单提交已取消,因为当我尝试隐藏模态Jquery时表单未连接 - Form submission canceled because the form is not connected when I try to hide modal Jquery html表单提交原因“由于未连接表单而取消了表单提交” - html form submit cause “Form submission canceled because the form is not connected” 收到错误“由于表单未连接而取消表单提交” - Getting Error "Form submission canceled because the form is not connected" 表单提交取消,因为表单没有连接 Vue js 与 Laravel - Form submission canceled because the form is not connected Vue js with Laravel
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM