I am new to \"AJAX\" and I have been trying to send a request \"ONSELECT\" using \"AJAX
You made error in code ,please write it properly.
$.ajax({
type :"POST",
url :"http://localhost/laravel/public/form-data",
dataType:"json",
data :{ data1:data },
success :function(response){
alert("thank u");
}
});
Update
I just saw your Returning datatype is json , so use
dataType:"json",
or
dataType:"jsonp",