skip to Main Content

How do I stop duplicate content from appearing in my view when using laravel and ajax?

Here is my view(Ajax) $('#basicInfoForm').submit(function(e){ e.preventDefault(); let formData = new FormData(this); $.ajax({ type: "POST", url: "{{route('profile.basic_info')}}", dataType: 'json', data: formData, contentType: false, processData: false, beforeSend:function(){ $("#fountainG").fadeIn(1000); }, success: function(response){ $.each(response.errors, function (key, value) { $("#fountainG").fadeOut(1000); $('.alert-danger').fadeIn(2000); $('.alert-danger').append('<span>'+value+'</span>'+'<br>'); setTimeout(function() { $('.alert-danger').fadeOut(4000,…

VIEW QUESTION
Back To Top
Search