I have few divs which share the same class called inner. Now I am able to access the first div of this class by doing something like
$(event.target).parent().find(".inner:first")
Basically I want to target this div on mouse click hence the event.target.
This works great but I want to use number to access the div. Say I want to access the second div of this class So I do something like this
n = 1
$(event.target).parent().find(`.inner:eq(${n})`)
But I do not get any result. What am I doing wrong?