I have a div #fancybox-content that's hidden, until a thumbnail is clicked then that div pop ups.
I want to add another DIV #video-desc after #fancybox-content so the contents of #video-desc shows under it when it pops up.
I have this code
<script type='text/javascript'>
jQuery(document).ready(function($){
$('#video-desc').insertAfter('#fancybox-content')
});
</script>
it doesnt seem to be working though, it this because the div is hidden? how would i only trigger this event after #fancybox-content is visible?
$('#fancybox-content').show(); $('#video-desc').insertAfter('#fancybox-content');