View Single Post
Old 02-03-2012, 02:48 PM   PM User | #1
jon22
New Coder

 
Join Date: Sep 2009
Posts: 20
Thanks: 2
Thanked 0 Times in 0 Posts
jon22 is an unknown quantity at this point
Javascript Errors!! Lightbox and toggle

I am trying to get lightbox working on my site but am having a few problems,

The only way i can get it to work is if I remove another section of javascript which controls a toggle sidebar

Even if I just remove the jquery.min.js from the script below then the lightbox starts to work,

I've tried calling lighbox first and moving it around but no luck, any ideas?

Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
this is the rest of the code

Code:
<script type="text/javascript">
jQuery(document).ready(function() {
  jQuery(".toggle-content").hide();
  //toggle the componenet with class msg_body
  jQuery(".link-toggle").click(function()
  {
    jQuery(this).next(".toggle-content").slideToggle(500);
  });
});
</script>
jon22 is offline   Reply With Quote