编辑下面的代码:【加编码】
<html> <body> <form action="http://ziqiangxuetang.com/tags/demo_form.asp" id="carform"> Firstname:<input type="text" name="fname"> <input type="submit"> </form> <br> <select name="carlist" form="carform"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="opel">Opel</option> <option value="audi">Audi</option> </select> <p>The drop-down list is outside the form element, but should still be a part of the form.</p> <p><b>Note:</b> The form attribute is not supported in Internet Explorer.</p> </body></html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂