set value to TextBox if another option is selected in DropDown Box using JavaScript and jQuery code example
Example: how to set dropdown value in textbox using jquery
$('#chosen_a').change(function(){
//get the selected option's data-id value using jquery `.data()`
var criteria_rate = $(':selected',this).data('id');
//populate the rate.
$('.criteria_rate').val(criteria_rate);
});