Click here to Skip to main content
15,904,416 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have set the meta and header for ajax setup and already done a action with ajax.
But this time at same place I have faced the error.
I can't find out my problem.

What I have tried:

var per = new Array();
             $("input[name='permission']:checked").each(function() {
                 "_token": "{{ csrf_token() }}",

               // success:function(response){

               //   if (response.status=='errors') {
               //           response.message
               //         )
               //   }
               //   if (response.status=='success') {
               //           response.message
               //         )
               //       $('#roleModal').modal('hide');
               //       $("#role_create_form")[0].reset();
               //       $('.table').load(location.href + ' .table');
               //     }
               // }
Updated 8-Mar-23 21:50pm

1 solution

A 500 error means something went wrong in your server-side code.

We can't see the code, and we can't see the details of the error, so we can't tell you what the problem is. You will need to debug your server-side code to find out what went wrong, and then fix it.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900