Javascript Code to take input and send input to other input field using getElementbyid

 Code to insert one value from one input to another

<script>
 function send_data(){                
 var data = document.getElementById('service_option').value;
 console.log(data);
document. getElementById('service_input'). value = data;
}
</script>

1 comment: