HTML DOM Input Number select() Method Last Updated : 25 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The Input Number select() Method in HTML DOM is used to select the contents of the Input Number field. it is the in-built method of the Number Object. Syntax numberObject.select() Parameters: This method does not contain any parameters. Return Value: This method does not return any value. Example: Below HTML code illustrate the use of input number select() method in HTML DOM . HTML <!DOCTYPE html> <html> <body style="text-align:center;"> <h1 style="color:green;"> GeeksForGeeks </h1> <h2>DOM Input Number select() Method</h2> <form id="myGeeks"> <input type="number" value="152356537838" id="myNumber" step="5" name="geeks" autofocus> </form> <br><br> <button onclick="myFunction()"> Click Here! </button> <script> function myFunction() { // Select the content of a Input Number field var x = document.getElementById( "myNumber").select(); } </script> </body> </html> Output: HTML DOM Input Number select() Method Supported Browsers: Google ChromeEdge 12 and aboveFirefoxSafariOpera Comment More infoAdvertise with us Next Article HTML DOM Input Number select() Method M manaschhabra2 Follow Improve Article Tags : HTML HTML-DOM HTML-Methods Similar Reads HTML DOM Input Number stepUp() Method The Input Number stepUp() method in HTML DOM is used to increase the value of the number field by the given value. Syntax: numberObject.stepUp( number )Parameters: It accepts a single parameter that is required: number: It specifies the number by which the number field will be increased. By default, 1 min read HTML DOM Input Search select() Method The Input Search select() Method in HTML DOM is used to select the content of the Input search text field. It is the predefined method of the Search object. Syntax: searchObject.select()Parameters: It does not accept any parameter.Return Value: It does not return any value. Example: This example use 1 min read HTML DOM Input Month select() Method The input Month select() method in HTML DOM is used in selecting the content of the month text field. Syntax: monthObject.select() Parameters: It does not accept any parameter. Return Value: It does not return any value. Example: This example uses the input Month select() method to select the conten 1 min read HTML DOM Input Tel select() Method The input tel select() method in HTML DOM is used to select the contents of the input tel field. It is an in-built method of the input tel object. Syntax: telObject.select() Parameters: This method does not accept any parameters. Return Value: This method does not return any value. Example: Below HT 1 min read HTML DOM Input URL select() Method The HTML <input type=âurlâ> is used to define a field that entered a URL. This input value is automatically validated before submitting the form. The input URL select() method in HTML DOM is used to select the content of a URL text field. It is an in-built method of input URL Object. Refer to 1 min read HTML | DOM Input Password select() Method The Input Password select() Method in HTML DOM is used in selecting the content of the password field. Syntax: passwordObject.select() Parameters: It does not accepts any parameter. Return Value: It does not return any value. Example: This example uses Input Password select() Method to select passwo 1 min read HTML DOM Input Text select() Method The DOM Input select() method selects all the text content of a textarea or an input element that contains the text field. Syntax: element.select(); Parameters: This method does not accept any parameters. Example: This example selects the content of the input text field. HTML <!DOCTYPE html> 1 min read HTML DOM Input Date select() Method The Input Date select() Method in HTML DOM is used to select the contents of the Date text field. It is the predefined method of the Input date object. Syntax: dateObject.select() Parameter: This method does not contain any parameters. Return Values: It does not return any value. Example: Below exam 1 min read HTML DOM Input Time select() Method The input Time select() method in HTML DOM is used in selecting the content of the time text field. Syntax: timeObject.select() Parameters: It does not accept any parameter. Return Value: It does not return any value. Example: This example uses the input Time select() method to select the content i 1 min read HTML DOM Input Week select() Method The input week select() method in HTML DOM is used in selecting the content of the week field. Syntax: weekbject.select() Parameters: It does not accept any parameter. Example: This example uses the input week select() method to select the week field. HTML <!DOCTYPE html> <html> <head 1 min read Like