jQuery - Useful Methods 11/3/2009 All jQuery posts

Gets the index of any element
 
function GetIndex($obj) {
    $obj = $($obj);
    return $obj.parent().children().index($obj);
}