Am new to javascript i foud this one in [w3schools.com](http://w3schools.com) - **Entering pincode in search box will show in `<p>` tag** !! How to do ? any help appreciated. Thanks in advance 

**HTML :**

```
<form class="form1" role="search" method="get" action="search-pincode.html">
<input class="pincode1" type="number" placeholder="Enter Postcode" id="user-pincode">
<button class="submit" type="submit" formaction="search-pincode.html" onclick="myFunction()">Check</button>
</form>

```

**JS SCRIPT :**

```
    <script>
    function myFunction() {
    var x = document.getElementById("user-pincode").value;
    document.getElementById("user-pincode-show").innerHTML = x;
    }
    </script>

```

**OUTPUT : search-pincode.html**

```
                <h1 class="search-h1-contact">
                Yes, we install CCTV in <p id="user-pincode-show"></p>
                </h1>

```