1.
<span style="font-size:14px;"> $(document).ready(function() {
$(".city").change(function(){
option_val=$(this).find("option:selected").val();
if(option_val!=0){
var data={},hello='city';
data[hello]=option_val;
$.ajax({
type: "POST",
url: "{:U('Order/group_order')}",
data:data,
timeout:2000,
cache:true,
success: function(data){
alert(data);
//$("p.prise-data").html({$zan_info}+1+'个赞');
}
});
}
});
});
</script></span>
2.截图如下:
3.php页面接收如下: