HTML input formtarget 属性
带有两个提交按钮的表单,会提交到不同的目标窗口: 实例 Run this code » <form action="demo-form.php"> First name: <input type="text" name="...
带有两个提交按钮的表单,会提交到不同的目标窗口: 实例 Run this code » <form action="demo-form.php"> First name: <input type="text" name="...
带有两个提交按钮的表单(一个进行验证,另一个不进行验证): 实例 Run this code » <form action="demo-form.php"> E-mail: <input type="email" name...
第二个提交按钮覆盖了表单的 HTTP 方法: 实例 Run this code » <form action="demo-form.php" method="get"> First name: <input type="t...
发送默认编码的表单数据(第一个提交按钮),发送编码为 "multipart/form-data" 的表单数据(第二个提交按钮): 实例 Run this code » <form action="demo-post-enctype.p...
带有两个提交按钮的 HTML 表单(不同的 action 值): 实例 Run this code » <form action="demo-form.php"> First name: <input type="text...
位于 form 表单外的输入字段(但仍然属于 form 表单的一部分): 实例 Run this code » <form action="demo-form.php" id="form1"> First name: <i...
带有已禁用的输入字段的 HTML 表单: 实例 Run this code » <form action="demo_form.php"> First name: <input type="text" name="fnam...
带有预选定复选框的 HTML 表单: 实例 Run this code » <form action="demo_form.php" method="get"> <input type="checkbox" name="v...
设置 "First name" 输入字段在页面加载时自动获得焦点: 实例 Run this code » <form action="demo_form.html"> First name: <input type="...
启用自动完成功能的 HTML 表单(其中一个输入字段禁用了自动完成): 实例 Run this code » <form action="demo_form.html" autocomplete="on"> First name...