当前位置: 首页 > 网络学院 > 客户端脚本教程 > HTML DOM > HTML DOM form属性
The form property returns a reference to the form that contains the checkbox.
form属性可返回包含checkbox表单的参考
This property returns a form object on success.
这个属性可返回表单对象
checkboxObject.form |
The following example returns the id of the form the checkbox belongs to:
返回checkbox所在表单的id:
<html> <form id="form1"> <p>The form containing the checkbox is: </body> |
Get the id of the form the checkbox belongs to
checkbox所在表单的id