change textfield value if other value is set jquery code example
Example: jquery set input value
$("button").click(function(){
$("input:text").val("Glenn Quagmire");
})
$("button").click(function(){
$("input:text").val("Glenn Quagmire");
})