マウス クリックでドロップ ダウン メニューのルック アンド フィールを取得しようとしています。私がこれまでに持っているhtmlは、このように少し見えます
<div id="tabs">
<ul id="tab_list">
<li><a href="" id="tab1" class="active">Contents</a></li>
<li><a href="" id="tab1" class="active">Contents</a></li>
<li><a href="" id="tab1" class="active">Contents</a></li>
</ul>
</div>
<div id="tab_contents">
<div class="">
<h2>The table of contents</h2>
<p>The descriptive text for this tab</p>
</div>
<div class="hide">
<h2>About the author</h2>
</div>
<div class="hide">
<h2>About the downloads</h2>
</div>
</div>
そしてcss
#tabs{margin-top: 1em;}
#tab_list{margin: 0;
padding: 3px 6px;
border-bottom: 1px solid black;}
#tab_list li {list-style-type: none;
display: inline;}
#tab_list li a {padding: 3px 1em;
margin-left: 3px;
text-decoration: none;
font-weight: bold;
color: black;
background: yellow;
border: 1px solid black;
border-bottom: none;}
#tab_list li a:hover{background: white;
border-color: black;}
#tab_list li a:active{background-color: white;
border-bottom: 1px solid white;}
#tab_contents div{padding: 5px 10px 10px;
border: 1px solid black;
border-top: 0;
height: 100px;}
.hide {display: none;}
ここで、選択したカテゴリに基づいて各コンテンツ ページを非表示および表示したいと考えています。どうすればこの効果を得ることができますか? 私の例で直接作業してください。