简体   繁体   English

单击表单的提交按钮后执行操作

[英]perform an action after clicking on the submit button of a form

I have two possibilities either the divi contact form or the form7 contact form.我有两种可能性,要么是 divi 联系表,要么是 form7 联系表。 I have a simple form that is displayed in a popup.我有一个显示在弹出窗口中的简单表单。 I would like, if it is possible in code but I am not very good, that when I click on the send button a section is created in my page.我想,如果在代码中可能但我不是很好,当我单击发送按钮时,会在我的页面中创建一个部分。

If someone has this knowledge it would be a great help thanks如果有人有这方面的知识,这将是一个很大的帮助,谢谢

Not sure If I understood you well, but you can do something like that with javascript不确定我是否理解你,但你可以用 javascript 做类似的事情

document.querySelector("#id_of_button").addEventListener("click", function(e) {
   console.log("i'm here"); 
})

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM