index


          // Determine the position of an element within
          // the matched set of elements
          index: function( elem ) {
                  //        <summary>
                  //                Searches every matched element for the object and returns
                  //                the index of the element, if found, starting with zero. 
                  //                Returns -1 if the object wasn't found.
                  //                Part of Core
                  //        </summary>
                  //        <returns type="Number" />
                  //        <param name="elem" type="Element">
                  //                Object to search for
                  //        </param>
  
                  // Locate the position of the desired element
                  return jQuery.inArray(
                          // If it receives a jQuery object, the first element is used
                          elem && elem.jquery ? elem[0] : elem
                  , this );
          },