I am attempting to change the value of a text input based on the user selecting a value from a pulldown. I have got it working using the following,
$('#name').val($('#firstname').val());