$('#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); });