I'm trying to get some div tags to wrap around 3 elements, but my jQuery code only gets me wrapping 2. Here is the example...
http://jsbin.com/ihucel/9/edit
Which outputs...
I would need it to also wrap the image tag like so...HTML Code:<img title="Title Caption" alt="Alt Caption" class="captionImg" src="http://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif"> <div class="imgWrapper"> <br> <span class="imgCaption">Title Caption</span> </div>
Any ideas how to do this?HTML Code:<div class="imgWrapper"> <img title="Title Caption" alt="Alt Caption" class="captionImg" src="http://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif"> <br> <span class="imgCaption">Title Caption</span> </div>
Thanks in advance![]()


Reply With Quote
Bookmarks