<script>
$( "#selectGeetaId" ).change(function() {
$('#inputName').val($(this).find(':selected').text());
});
// change event
$('#myselect').change(function(){
console.log($(this).find(':selected').text());
console.log($(this).find(':selected').val());
});
</script>