Php ajaxget&;POST方法在Laravel中不起作用。显示错误
我需要用laravel创建一个动态的国家、州、城市和子城市下拉列表 它显示了这个错误Php ajaxget&;POST方法在Laravel中不起作用。显示错误,php,jquery,ajax,laravel,Php,Jquery,Ajax,Laravel,我需要用laravel创建一个动态的国家、州、城市和子城市下拉列表 它显示了这个错误 $(文档).ready(函数(){ $(“#省”)。关于('change',函数(e){ 控制台日志(e); //var cId=e.目标值; var countryID=$(this.val(); $.ajax({ 类型:'POST', url:“/json摄政”, 数据:'country_id='+countryID, 成功:函数(html){ log(html); $(“#摄政”).html(html
$(文档).ready(函数(){
$(“#省”)。关于('change',函数(e){
控制台日志(e);
//var cId=e.目标值;
var countryID=$(this.val();
$.ajax({
类型:'POST',
url:“/json摄政”,
数据:'country_id='+countryID,
成功:函数(html){
log(html);
$(“#摄政”).html(html);
$('#city').html('Select state first');
}
});
//$.get('/json REGENCES?cId='+cId,函数(数据){
//控制台日志(数据);
// });
});
});
印度尼西亚
Laravel5.5jQueryAjax示例
@csrf
你的省份
==选择省份===
@foreach($key=>$value)
{{$value->countryName}
@endforeach
你们的摄政权
==选择摄政区===
你们的地区
==选择地区===
你们的村庄
==选择村庄===
您发布的图像不再可用。您发布的图像不再可用。