Input Week form property
Example
Return the form containing The form id to which the element belongs:
var x = document.getElementById("myWeek").form.id;
x
The output is:
myForm
Try it »
Definition and Usage
The form property returns a reference to the form containing the week field.
On success, this attribute returns the form object.
**Note:** This property is read-only.
Browser support





All major browsers support the form attribute.
Note: Internet Explorer or Firefox browsers do not support .
Syntax
weekObject
.form
Technical Details
| Return Value: | A reference to the form element containing the week field. If the week field is not inside a form, it returns null. |
|---|
The Input Week object