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,
Give this one a try: http://jsfiddle.net/ufomammut66/mw4dY/
Basically onload I'm just selecting an option by the value, setting it to selected and then calling the change event. Your change event takes care of the rest.
$(document).ready(function() {
$("#name").live("change", function() {
$("#firstname").val($(this).find("option:selected").attr("value"));
});
$('#name option[value=Frank]').attr('selected','selected').change();
});