> 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.

