Saturday, November 1, 2008

[jQuery] selected index for
  • item
  • hi.. i am trying to get selected index for unordered list <ul>. i am
    using jcarousellite and need to get the index of the currently
    displayed image. basically i need to display "image x of y" where x is
    current index and y is total images. i got total images by this var
    div = $(".anyClass"); ul = $("ul", div); tLi = $("li", ul); tl =
    tLi.size(); while peeking into the source of jcarousellite.. but can
    not find how to get the current selected index.... if any one can help.

    No comments: