<?php
if ($_GET['_value'] == '福特'){
$array[] = array('選擇型號','Mondeo','Focus','aaa');
}elseif($_GET['_value'] == '日產'){
$array[] = array('選擇型號','TIIDA','TEANA');
}elseif($_GET['_value'] == '豐田'){
$array[] = array('選擇型號','ALTIS','CAMRY','YARIS');
}else{
$array[] = array('' => '尚未選擇廠牌');
}
echo json_encode( $array );
?>
注意!要使用jquery.chainedSelects2.js
<script language="JavaScript" type="text/javascript" src="jquerychained/jquery.chainedSelects2.js"></script>