Input Checkbox form 属性
定义和用法
form
属性返回对包含复选框的表单的引用。
此属性在成功时返回表单对象。
注释:此属性是只读的。
实例
获取包含 <input type="checkbox"> 元素的表单的 id:
var x = document.getElementById("myCheck").form.id;
Syntax
checkboxObject.form
Technische Details
Rückgabewert: | Verweis auf das Formularelement, das das Kontrollkästchen enthält. Wenn das Kontrollkästchen nicht im Formular ist, wird null . |
---|
Browserkompatibilität
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Unterstützung | Unterstützung | Unterstützung | Unterstützung | Unterstützung |