Skip to content
Related Articles

Related Articles

HTML DOM Input Tel list Property

Improve Article
Save Article
  • Last Updated : 11 May, 2022
Improve Article
Save Article

The input Tel list property in HTML DOM is used to return a reference to the list element that contains an input tel field.


Return value: It returns a string value that represents the value of the id attribute of the datalist element.

Example:  Below HTML code used to return the input tel list property.  


<!DOCTYPE html>
<body style="text-align:center;">
    <h1 style="color:green;">
    <h2> DOM Input Tel list property </h2>
        Phone Number:
        <input type="tel" id="mytel" 
            value="6753682635" autofocus>
    <datalist id="telephone_list">
        <option value="87688965" />
        <option value="998347589" />
        <option value="99384339" />
        <option value="837494493" />
        <option value="8474748437" />
    <button onclick="btnclick()">
        Click Here!
    <p id="paraID" style="font-size:20px"></p>
        function btnclick() {
            var x = document.getElementById("mytel");
            document.getElementById("paraID").innerHTML = x;



Supported Browsers:

  • Google Chrome
  • Edge
  • Mozilla Firefox
  • Opera
  • Safari 

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!