HTML DOM form ÊôÐÔ

¶¨ÒåºÍÓ÷¨

form ÊôÐÔ¿É·µ»Ø¶Ô°üº¬¸Ã°´Å¥µÄ±íµ¥µÄÒýÓá£

Èô³É¹¦£¬¸ÃÊôÐÔ·µ»ØÒ»¸ö±íµ¥¶ÔÏó¡£

Óï·¨

radioObject.form

ʵÀý

ÏÂÃæµÄÀý×Ó½«·µ»Ø¸Ãµ¥Ñ¡°´Å¥ËùÊôµÄ±íµ¥µÄ id£º

<html>
<body>

<form id="form1">
<input type="radio" id="radio1" />
</form>

<p>The id of the form containing the radio button is: 
<script type="text/javascript">
x=document.getElementById('radio1');
document.write(x.form.id);
</script></p>

</body>
</html>
VUE