copy the text from one text box to another in on click : I have two textbox.I want to copy the text in key press event fron one textbox to another in jquery

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-js -->

    $(document).ready(function(){
        $(".first").keydown(function(){
            $(".second").value($(".first").value);
        });
        
    });

<!-- language: lang-html -->

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>




    Enter your name: <input type="text" class="first">
    <input type="text" class="second">

<!-- end snippet -->

