html query控制显示隐藏(下拉框控制)

<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<title></title>
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script>
</head>
<script>
$(function() {
//隐藏div
$("#shouhou2").hide();
$("#shouhou2").hide();
$("#shouhou3").hide();
//给div添加change事件
$("#type").change(function() {
if($(this).val() == 1 ) {
// $("#shouhou1").show();
// $("#shouhou2").hide();
// $("#shouhou3").hide();
} else if($(this).val() == 2 ) {
$("#shouhou2").show();
$("#shouhou1").hide();
$("#shouhou3").hide();
}
else if($(this).val() == 3 ) {
// $("#shouhou3").show();
// $("#shouhou1").hide();
// $("#shouhou2").hide();
}
})
})
</script>

<body>
<select class="select" size="1" name="type" style>柱状图区域</div>
</body>

</html>