Input Radio form 属性
定义和用法
form
属性返回对包含单选按钮的表单的引用。
此属性在成功时返回表单对象。
注意:此属性是只读的。
实例
获取包含 <input type="radio"> 元素的表单的 id:
var x = document.getElementById("myCheck").form.id;
Syntax
radioObject.form
Technische Details
Rückgabewert: |
Verweis auf das Formularelement, das Radio-Buttons enthält. Wird der Kontrollkästchen nicht im Formular enthalten, wird zurückgegeben |
---|
Browserunterstützung
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Unterstützung | Unterstützung | Unterstützung | Unterstützung | Unterstützung |