Jquery ajax – AJAX Post twice in Laravel framework
i was searching in stackoverflow with the same title, but i got no luck.. this is my ajax script $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('input[name="_token"]').val() } }); $('#btn-submit').on('click', function(e) { e.preventDefault(); var nama_kelompok_jalan = $('input[name="nama"]').val(); var action = $('#csrf-token').attr('action'); $.ajax({ type:'POST',…