I have a page that has a number of weblog entries on it. Some of those entries have video associated with them. I would like to use jQuery Toggle the visibility of the videos (one at a time).
My question relates to the use of .this so that I only toggle the desired video.
My initial jQuery is:
<script type="text/javascript">
$("#toggle").click(function() {
$("#video").toggle("slow");
});
</script>
The content I am working with is (note I am working in Expression Engine here):
<button id="toggle">Toggle</button>
<div id="video">
{exp:flvplugin playerpath="{site_url}video/player.swf" file="{seminar_video}" playernumber="{entry_id}" backcolor="c6c981" frontcolor="741a0a" width="500" height="325" }
<div id="player{entry_id}"></div>
</div>
To start with I would like to hide all videos. Then I would like to show only the video associated with the particular entry.
Thanks.