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,
Paste this code on $(document).ready
$(document).ready
$("#name").val($("#firstname").val());