iEthan
Member
So I have the following code:
I have a slider all set up. But I want to bind the caption div to the image div. How would I do this with jQuery?
HTML:
<div class="sub-container">
<div id="image"><a href="lib/img/portfolio/sample.jpg" title="This is a sample photo."><img src="lib/img/portfolio/sample.jpg" width="500" height="300" alt="" /></div>
<div id="back"><a href="#"><span>Back</span></a></div>
<div id="caption">123 Main Street, Anytown</div>
<div id="next"><a href="#"><span>Next</span></a></div>
</div>
I have a slider all set up. But I want to bind the caption div to the image div. How would I do this with jQuery?