<script type="text/javascript">
var qObj = {
elmt:'select',
tip:'Please select',
tVal:'',
cur:[],
arr:{
1:'What is your primary school name? ',
2:'Who is your most admired person? ',
3:'What is your favorite flower name? ',
4:'What is your father's profession? ',
5:'Your father's name? ',
6:'The name of your high school class teacher? '
}
}
$(function(){
//Get all select boxes
var elements = $();
//This step is just an initialization operation, writing all problems into the select box
(function(i){
var html = '<option value="'+ +'">'+ +'</option>';
for(var q in ){
html += '<option value="'+ q +'">' + [q] + '</option>';
}
$(this).html(html);
});
//Select select box to add listening events
(function(){
var
cValue = {}, // Used to record the currently selected problem
elmts = elements,
cIndex = ($(this)); //Current select marquee index value
//Transfuse all select boxes and record the current selection of each box
(function(i){
[i] = $(this).val();
});
//Record the currently selected problem and implement mutex lock
for(var i in ){
cValue[[i]] = 1;
}
//Transfuse all select boxes and reset all problems
(function(i){
//Skip the current select check box because the content does not require correction
if (cIndex == i) return;
var html = '<option value="'+ +'">'+ +'</option>';
for(var q in ){
//If it is a mutually exclusive content and does not belong to this check box, skip (key point)
if (cValue[q] && q != [i]) continue;
html += '<option value="'+ q +'"' + (q == [i]?' selected="selected"': '') + '>' + [q] + '</option>';
}
$(this).html(html);
});
});
})
</script>
Secret security 1: <select style="width:180px"></select><br/>
Secret security 2: <select style="width:180px"></select><br/>
Secret security 3: <select style="width:180px"></select>