($(this).val() == "Spine")
如果选择菜单关闭,则此代码工作正常,然后在选择我做错($(this).val() == "Spine"||"Brian")
了什么时再次打开?"optionbodyRegion" == ""
$("#optionbodyRegion").change(function(){
if ($(this).val() == "Spine"||"Brain") {
document.getElementById('optioncontrast').options[0]=new Option("Select", "", false, false)
document.getElementById('optioncontrast').options[1]=new Option("With", "With", false, false)
document.getElementById('optioncontrast').options[2]=new Option("Without", "Without", false, false)
document.getElementById('optioncontrast').options[3]=new Option("With and Without", "With and Without", false, false)
$("#contrast").slideDown("fast"); //Slide Down Effect
} else {
if ($(this).val() == "" ) {
$("#contrast").slideUp("fast"); //Slide Up Effect
}
}
});