HTML DOM Input Number form properties
Examples
Back <input type = "number"> id element form belongs:
var x = document.getElementById("myNumber").form.id;
x The output is: myForm
try it"
Definition and Usage
form property returns a number that contains a form field reference.
This property returns the form object success.
Note: This property is read-only attribute.
Browser Support
All major browsers support form properties
Note: Internet Explorer 9 and earlier versions of IE do not support the use of type = "number" <input> element attributes.
grammar
numberObject .form
technical details
return value: | Number field contains a reference to the form elements. If the number field is not in the form, return null. |
---|
Input Number Object