skip to Main Content

Ajax form Submit vizualizing the php file – Jquery ajax

This is the js <script> $(document).ready(function() { $("#create-admin").submit(function(e) { var forms = document.getElementsByClassName('needs-validation'); if(forms == null) { $.ajax({ type: "POST", url: "crud_admin.php", dataType: "html", data: $("#create-admin").serialize() }).done(function(data){ toastr.success(data, 'Success Alert', {timeOut: 5000}); }) } /**/ }) }) this is the…

VIEW QUESTION
Back To Top
Search