pcproff
04-01-2011, 11:47 PM
OK so problem is pretty clear here when i click on any of the section id's all of my p class bottoms open up. Is there a way besides writing class=1,class=2 etc to avoid this issue?
Thanks all!
<section id="clickme"><h3>Latest work</h3>
<img src="images/placeholder.gif" class="placeholder"/>
<p class="bottom">This is the toggle!</p>
</section>
<section id="clickme"><h3>Who we are</h3>
<p class="bottom">This is the toggle!</p>
</section>
<section id="clickme"><h3>Services</h3>
<p class="bottom">This is the toggle!</p>
</section>
<section id="clickme"><h3>Contact Us</h3>
<p class="bottom">This is the toggle!</p>
</section>
<footer>text</footer>
<script type="text/javascript" charset="utf-8">
$("#clickme").click(function () {
$(".bottom").slideToggle("fast");
});
</script>
Thanks all!
<section id="clickme"><h3>Latest work</h3>
<img src="images/placeholder.gif" class="placeholder"/>
<p class="bottom">This is the toggle!</p>
</section>
<section id="clickme"><h3>Who we are</h3>
<p class="bottom">This is the toggle!</p>
</section>
<section id="clickme"><h3>Services</h3>
<p class="bottom">This is the toggle!</p>
</section>
<section id="clickme"><h3>Contact Us</h3>
<p class="bottom">This is the toggle!</p>
</section>
<footer>text</footer>
<script type="text/javascript" charset="utf-8">
$("#clickme").click(function () {
$(".bottom").slideToggle("fast");
});
</script>