I can get array values on scrpit array .
Script is
$(document).on('click', '#bulk_delete', function()
{
var id = [];
if(confirm("Are you sure you want to Delete this data?"))
{
$('.student_checkbox:checked').each(function(){
id.push($(this).val());
});
if(id.length > 0)
{
$.ajax({
url:"del",
method:"get",
data:{id:id},
success:function(data)
{
alert(data);
$('#dTable').DataTable().ajax.reload();
}
});
}
else
{
alert("Please select atleast one checkbox");
}
}
});
How to get these array values to laravel controller and insert into the database
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2QV4Joi
via IFTTT

Aucun commentaire:
Enregistrer un commentaire