I have an HTML element myElement. I need to select all the elements that have the same parent and are after this element.
I tought about
var index = $myElement.index();
var followingSiblings = $myElement.parent().children(":gt(" + index + ")");
This works but seems clumsy and not very performant.
Q: Is there a more elegant, more pefromant, more beautiful, smarter, more awesomer way to do that ?
Fiddle
Reference