When entering data in the input field at the bottom I get what I wrote. It is necessary that before entering the value VALUE appears at the bottom, and after editing INPUT, a new text appears. Tell me, how can this be done?
<input type="text" class="mytext" value="Пример"> <p id="contenInput"></p> <script> $(document).ready ( function(){ $(".mytext").keyup(function() { $('#contenInput').text($(".mytext").val()); }); }); </script>