HTML表单标签属性 [英] Html form tag attribute
本文介绍了HTML表单标签属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个包含表单标签的用户控件.表单标记属性Method的值为POST.此用户控件仅包含html控件,因为我必须将表单数据提交到另一台服务器,而无需访问主机服务器.
但是我的页面包含一个以上的表单标签.我只想单击按钮即可提交特定表单标签的内容.我想使用Java脚本执行此操作.
请让我如何实现这一目标.
谢谢,
Alok Kumar
Hi all,
I have a user control which contain a form tag. And the form tag attribute Method value is POST.This user control contains only the html controls because I have to submit the form data to another server without visiting to the host server.
But my page contains more then one form tag. And I want to submit only the content of a particular form tag on the click of a button. I want to do this using java script.
Please let me how can I achieve this.
Thanks,
Alok Kumar
推荐答案
表单提交只会发送该表单的begin和end元素之间的控件.只需设置action
并调用submit
就可以了.
祝你好运!
A form submit will only send the controls that are between the begin and end element of that form. Just set theaction
and call thesubmit
and that''s it.
Good luck!
这篇关于HTML表单标签属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文