I am getting id's currently i an alert i want to post these id's to destroyAll method in my userController here is my method through which i am getting id's in alert
function deleteAll () {
var checkedValues = $('input:checkbox:checked').map(function() {
return this.value;
}).get();
alert(checkedValues);
}
i want to post these values through ajax and delete there route is as
Route::post('/user-management/user/destroyAll', 'UserController@destroyAll');
in destroyall method i also want to explode , and minus head checkbox value