Jquery function to get nth sibling element

The above jquery operation will log value as eq(3) selects the 4th sibling of the parent element (.parent). The index starts from 0 as 1st element and so on. This method saves a lot of time and coding as it eliminates looping through nodes.