Simple JS or jQuery not working in a fancybox. Even if you put it in
callbackOnShow.
Here is a clean simple sample:
http://www.chromax.de/portfolio/test/example/index3.html
It’s a very simple jQuery
<script type="text/javascript">
$(document).ready(function() {
$('#hideh1').click(function() {
$
('.content1').toggle();
$
('.content2').toggle();
});
});
</script>
and it is not working in a fancybox. Even when you put it in a iFrame.
Also if you do it
without jQuery, just simple JS.
I urgently need a inline content switch in a fancybox!