>...selecting the next .slide after the one with .current in it? 

$('.current').next('.slide')
----------------------------------------------
>  how can i get the div index of the .current class?

var divIndex = $('#slideshow div').index(  $('.current')  ); 

MaurĂ­cio
---------------------------------------------
  -----Mensagem Original----- 
  De: Smickie 
  Para: jQuery (English) 
  Enviada em: sexta-feira, 3 de julho de 2009 11:18
  Assunto: [jQuery] next index in Jquery



  I was wondering if someone could please help me with a little Jquery.

  Does anyone know how i would go about selecting the next .slide after
  the one with .current in it? how can i get the div index of
  the .current class?

  <div id="slideshow">
  <div class="slide">Slide 1</div>
  <div class="slide">Slide 2</div>
  <div class="slide current">Slide 3</div>
  <div class="slide">Slide 4</div>
  <div class="slide">Slide 5</div>
  </div>


  Ive got the action attached to somthing outside of the slideshow div
  so i can use .this.

  thanks very much.

Reply via email to