IndexOf
methodsReturns the index of specified item. Filtered items are excluded from the collection.
Important: While user drags to sort the original item is hidden and the placeholder is appended to the Sortable collection. This is why jQuery's
indexmethod might return incorrect results. When the developer wants to find the index of a given item it is recommended to use widget'sindexOfmethod.
Parameters:elementjQuery
Returns:Number
jQuery object which represents the sortable element.
the index of specified item.