Hi Leanan,
If you're trying to find out the "number" of the li with
class="active", you can use the .index() method (
http://docs.jquery.com/Core/index/ ):
var activeIndex = $('li').index($('li.active')[0]);
alert(activeIndex+1);
Note that I added 1 to activeIndex for the alert, because index()
starts at zero.
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com