Ive been trying to get this to work but it keeps giving me an error. Here is the jsfiddle:
Hopefully Im not completely screwing this up.
JS:
$(document).ready(function() {
$('#showIt').click(function() {
$('#otherObject').hide();
});
});
HTML:
<section id="main">
<header>
</header>
<article>
<a id="showIt" href="">Show only one</a>
</article>
<footer>
</footer>
</section>
<section id="otherObject">
<header>
</header>
<article>
<img src="tdk.jpg">
</article>
<footer>
</footer>
</section>
<section id="otherObjectTwo">
<header>
</header>
<article>
</article>
<footer>
</footer>
</section>
<section id="otherObject3">
<header>
</header>
<article>
</article>
<footer>
</footer>
</section>
Remember to
return false;on the link: