How can I properly use .slideToggle in this situation?

How can I properly use .slideToggle in this situation?

I'm currently using slideToggle on my FAQs page, except the way I have it written is very redundant. I just started with JQuery yesterday, so I'm not really sure how to correct this. I'll post an example for you:

This is the HTML:
  1. <span class="toggler" id="toggle1">This is a faq.</span>
  2. <div class="faq" id="faq1">
  3. ytoosfdsf<br/>
  4. ytoosfdsf<br/>
  5. </div>
  6. <span class="toggler" id="toggle2">This is a faq.</span>
  7. <div class="faq" id="faq2">
  8. ytoosfdsf<br/>
  9. ytoosfdsf<br/>
  10. </div>

This is my script I'm currently using:

  1. $(document).ready(function(){
  2. $("#toggle1").click(function(){
  3. $("#faq1").slideToggle();
  4. });
  5. });

  6. $(document).ready(function(){
  7. $("#toggle2").click(function(){
  8. $("#faq2").slideToggle();
  9. });
  10. });

So how can I make this script into a function that will always slideToggle the FAQ answer div below it when the span above is clicked? Thanks ahead of time.