编辑下面的代码:【加编码】
<html> <body> <form action="demo-form.php" method="get" id="nameform"> First name: <input type="text" name="fname"><br> Last name: <input type="text" name="lname"><br> </form> <p>The button below is outside the form element, but still part of the form.</p> <button type="submit" form="nameform" value="Submit">Submit</button> <p><b>Note:</b> The form attribute does not work in IE.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂