Below are my script tags
$(document).ready(function(){
$('#delete').click(function(){
var formdata = new FormData();
formdata = formdata.append('id',selected);
$ajax({
type: "POST",
url: "/delete",
data: formdata,
success:function(){}
});
});
});
I am trying to call my javascript function to send ids of the selected images but when I am calling that function I am getting $ajax is not define error. It would be much helpful if someone could help me, Thanks!