Hi All,
I have some problems with hiding div elements. My page has frames and depending on some parameter it’s supposed to show either 2 or 3 columns of frames. So, I placed the <FRAMESET> element inside <div>, but it doesn’t work. For example, in the code below, I’mtrying to hide “div1”, but it doesn’t work (I always see div1 instead of div2)…. How to hide <FRAMESET> elements? Thanks for any help!
[CODE]
<script type=”text/javascript”>
$(document).ready(function(){
$(‘div#div1’).hide();
});
</script>
<div id=”div1″>
<FRAMESET COLS=”*,*”>
<FRAME SRC=”page1.html”>
<FRAME SRC=”page2.html”>
</FRAMESET>
<NOFRAMES>Your browser does not support frames.</NOFRAMES>
</div>
<div id=”div2″>
<FRAMESET COLS=”*,*,*”>
<FRAME SRC=”page1.html”>
<FRAME SRC=”page2.html”>
<FRAME SRC=”page3.html”>
</FRAMESET>
<NOFRAMES>Your browser does not support frames.</NOFRAMES>
</div>