How to show selected value using javascript in laravel
PHP Snippet 1:
let select = $('#editkelompok_id');
select.on('change',()=>{
// Your stuff
})
PHP Snippet 2:
let options = $('#editkelompok_id').children();
options.each(function() {
let option = $(this);
option.on('change', () => {
select.val(option.val());
})
})