Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #dropdown #textbox #jquery
ADD COMMENT
Topic
Name
9+5 =