If I understand you correctly, you are trying to do something like this...
I think that part of the problem is that you don't have an event handler attached. In the example below, I attach the function to a button click.
$("#button").click(function (){
$("#input2").val($("#input1").val());
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<label for "input1">Value 1</label>
<input type="text" id="input1" /><br />
<label for "input2">Value 2</label>
<input type="text" id="input2" /><br />
<input type="button" id="button" value="Update" />
In this example, similar to the first, I'm showing how you can automatically update the value when the value of the first input changes.
$("#input1").change(function (){
$("#input2").val($("#input1").val());
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<label for "input1">Value 1</label>
<input type="text" id="input1" /><br />
<label for "input2">Value 2</label>
<input type="text" id="input2" /><br />
These are just two basic examples, but based on your comments, I think the problem may be that you don't have an event handler assigned.
Another option would be if you just want the code to run once. In this case, you need to run the code after the DOM is loaded. You can do that by using jQuery's ready()
function like this
$(document).ready(function (){
$("#input2").val($("#input1").val());
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<label for "input1">Value 1</label>
<input type="text" id="input1" value="defaultValue" /><br />
<label for "input2">Value 2</label>
<input type="text" id="input2" /><br />