Suppose that I want to select the nearest target element from startFromThis (only the element that come after startFromThis. the target might be a child of any unnamed or unclassed element. Is there anyway to select this.
Sorry, i would like to edit startFromThis to be an ID
<div id="startFromThis"><div>
<div>
<span class="target"></span>
<div>
$('#startFromThis').closest('target element')assumingstartFromThisis an id.