Find the index of an element in <ul>