Correctly applying the same function to multiple div's

Correctly applying the same function to multiple div's

Hello,
I'm trying to get something to work that sounds simple and it worked great until I had a second item to apply it to. This works fine, with one div. When you hover over the link with the class 1slide, it loads the div with the class panel1. The problem is I can't get it to work if I use a second function for .2slide to load the div .panel2.
  1. <script type="text/javascript">
  2. jQuery().ready(function(){
  3.     jQuery(".1slide").hover(function(){
  4.     jQuery(".panel1").slideToggle("slow");
  5.     });
  6.     });
  7. </script>
I've tried multiple variations, including 2 <script> tags with the classes swapped, and combining as shown below

  1. <script type="text/javascript">
  2. jQuery().ready(function(){
  3.     jQuery(".1slide").hover(function(){
  4.     jQuery(".panel1").slideToggle("slow");
  5.     });
  6. jQuery(".2slide").hover(function(){
        jQuery(".panel2").slideToggle("slow");
        });

  7.     });
  8. </script>
I think I'm combining these wrong but I've tried multiple different ways. They're classes now but were ID's, and that didn't work either. Any suggestions? Thanks in advance for the help.

edit:
Figures, I was hesitant about posting hours ago because I knew it might be something simple.. I almost solved everything with this:

  1. <script type="text/javascript">
  2. jQuery().ready(function(){
  3.     jQuery(".1slide").hover(function(){
  4.     jQuery(".panel1").slideToggle("slow");
  5.     jQuery(".2slide").hover(function(){
  6.   jQuery(".panel2").slideToggle("slow");
  7.     jQuery(".3slide").hover(function(){
  8.   jQuery(".panel3").slideToggle("slow");
  9.     })
  10.     })
  11. })
  12. })
  13. </script>
all 4 div's .panel1, .panel2, .panel3 are set to display:none. The only issue now is panel3 is twitchy. I have a feeling it's yet again just a closing bracket issue. Am I writing this correctly? semi-colons anywhere, mess the entire thing up. I am using FireFox 3.5 for reference.

Thanks again.