How to add text before the output of function()

138 views Asked by At

I would like to add some text before the onchange="input()" function. anyone knows the trick? cheers

<head>
    <script type="text/javascript">
        function input(){
            var input_taker = document.getElementById('email').value;
            document.getElementById('display').innerHTML = input_taker;
        }
    </script>


</head>

<form method="post" action="#">
<input type="text" name="email" placeholder="[email protected]" id="email"  onchange="input()">
<input type="submit" name="save" value="save">

0

There are 0 answers