Vanilla Javascript - Passing values from one input field to another : I'm trying to pass a value from one input field, to another input field, with vanilla javascript.

This is the HTML I use:

    <input type="text" id="input1">
    <input type="text" id="input2">

When I try to pass it to a paragraph it works, but passing it to a new input field it won't.

Hope you can help me! 

Thanks! 