Dave Methvin Fri, 21 Sep 2007 14:42:27 -0700
> var firstPara = $("p#first").get(); > alert($("p").index(firstPara));
The .index() takes a DOM element as an argument, and you are passing it the array of DOM elements from .get(). Try using .get(0) instead and see if that helps.