Input Number form Attribute
Definition and Usage
form
The property returns a reference to the form containing the numeric field.
This property returns the form object on success.
Note:This property is read-only.
Example
Return the id of the form containing the <input type="number"> element:
var x = document.getElementById("myNumber").form.id;
Γλώσσα
numberObject.form
Τεχνικά λεπτομέρειες
Αποτελεσματικότητα: |
Αναφορά στο στοιχείο του έντυπου που περιέχει πεδία αριθμού. Αν το πεδίο number δεν υπάρχει στο έντυπο, τότε επιστρέφεται |
---|
Υποστήριξη浏览器
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Υποστήριξη | 10.0 | Υποστήριξη | Υποστήριξη | Υποστήριξη |