I essentially have the same situation as the person in the following question:
Link: how to show/hide divs by select.(jquery)
Through extensive searching wit
@fudgey has given a nice solution. but have little doubt. It will depend on value and need to change Attribute ID of So I'd do this
` $(document).ready(function() {
$('.box').hide();
$('#dropdown').change(function() {
var selectedIdx = (0 == $(this).attr("selectedIndex"))? '' : $(this).attr("selectedIndex");
if("" != selectedIdx){
$('#divarea'+ selectedIdx ).hide().siblings().show();
} else {
$('.box').hide();
}
});
});