Job Recruitment Website - Job information - How to do form linkage in php
How to do form linkage in php
var data_sheng = new Array('Hunan','Hubei','Guangdong',' Guangxi');
var data_shi = new Array();
data_shi[0] = new Array('Changsha','Zhuzhou','Xiangtan','Yiyang', 'Loudi','Yueyang','Huaihua');
data_shi[1] = new Array('Wuhan','Wuchang','Hankou','Pingjiang');
< p> data_shi[2] = new Array('Guangzhou','Dongguan','Shenzhen','Heyuan','Meizhou','Zhanjiang');data_shi[3] = new Array( 'Nanning','Guilin');
window.onload = function(){
var sheng = document.getElementById('sheng');
var k = 0;
for(var i in data_sheng){
var op = new Option(data_sheng[i],data_sheng[i]);
k++;
sheng.options[k] = op;
}
}
function change_shi(obj){ p>
var sheng = obj.value;
var k = getKey(sheng);
var shi = document.getElementById('shi');
//Clear options
shi.options.length = 0;
for(var i in data_shi[k]){
var op = new Option(data_shi[k][i],data_shi[k][i]);
shi.options[i] = op;
}
}
function getKey(str){
for(var i in data_sheng){
if(data_sheng[i] == str){ p>
return i;
}
}
return 0;
}
< /script>
< p>
- Related articles
- What season is the three kingdoms hodgepodge?
- What can I do to learn pharmacy?
- Where is Shenzhen maternity insurance reimbursed?
- The trick of spring is about to begin. Do you know the difference between spring and autumn strokes?
- Qianjiang Jinao Technology, which position is good?
- Is it safe for PICC car insurance renewal Commissioner to save money?
- Langtaosha Forum Langtaosha Youth Venture Fund
- Which vocational school is good in Guangzhou?
- Which recruitment websites are more reliable when looking for a job?
- Meng Lianhua Mongolia investment consulting network