我在加载时有 4 个 DIV,我想要隐藏 3 个 .. 单击(选项卡链接)我想显示该选项卡的内容.. 并隐藏其余部分.. 这就是我所拥有的.. 它不起作用 =(
http://codepen.io/anon/pen/AafIH
<script type='text/javascript' src='http://mimerchant.com/wp-includes/js/jquery/jquery.js'></script>
<div class="tabnav">
<ul class="fancyNav">
<li id="news"><a href="#creditcard" id="creditcard_link">Credit Card Processing</a>
</li>
<li id="about"><a href="#atm" id="atm_link">ATM Processing</a>
</li>
<li id="services"><a href="#giftcard" id="giftcard_link">Gift Card Program</a>
</li>
<li id="contact"><a href="#check" id="check_link">Check Guarantee</a>
</li>
</ul>
</div>
<div class="tabcontent">
<div id="creditcard">
<div id="textbox">
<h3>Credit Card Processing</h3>
<p>Some Text here about what this credit card tab is about</p>
<h3>Low Rates</h3>
<p>About Low Rates</h3>
</div>
</div>
<div id="atm">
<div id="textbox">
<h3>ATM Processing</h3>
<p>Some text here about the ATM services</p>
<h3>Another Title</h3>
<p>Some text</p>
</div>
</div>
<div id="giftcard">
<div id="textbox">
<h3>Gift Card Program</h3>
<p>Something about gift cards</p>
</div>
</div>
<div id="check">
<div id="textbox">
<h3>Check Guarantee</h3>
<p>Something About Checks</p>
</div>
</div>
</div>