I have some element selected with jQuery selector. It is en element from list of elements with the same class ('my-elements'). Now I'd like to select element containing the selected one which is several levels above. How can I do this ?
<div class="vote>
(... several levels)
<div class="my_element"></div>
</div>
the selector:
var elements = $('.my_element');
var element = elements[0];