2 months ago

laravel datatables

Posted 2 months ago by rully

I'm trying datatables, there's a problem when I want to redirect to the edit form, the button doesn't work at all

this is my controller

->addColumn('action', function($data){ $button = ' Action Edit Delete '; return $button; }) ->rawColumns(['action']) ->make(true);

and this is the ajax that I made :

$(document).on('click', '.edit', function(){ var id = $(this).attr('id'); $.ajax({ url :"users/" + id + "/edit", dataType:"json", success:function(data) { console.log("OK"); } }) });

the button doesnt redirect to form edit, so plz help me :)

Please sign in or create an account to participate in this conversation.