Ok i have this code
Code:
<script src="jquery-1.3.2.js" type="text/javascript" /></script>
<script type="text/javascript">
$(document).ready(function(){
$('#popuptoggle').click(function(){
$('#popupbg').toggle('slow');
});
$('#popuptoggle').click(function(){
$('#popup').toggle('slow');;
});
});
</script>
now i want the divs with the id popup and popupbg to be hidden when the page is first loaded so i tried this
Code:
$("#popupbg").hide();
$("#popup").hide();
and it worked but they dont toggle hide/show.
also can i get the div to be hidden right when the page loads because right now its there until the page loads then it hides