No need to pass the element as argument while getting items
Use $.each to get items