hi all,
here's my markup:
<div class=container>
<ul>
<li class=record>
<div class=item></div> <---- I am here
</li>
</ul>
</div>
the container is always present, but the UL is optional.
what i want to do is get the "next parent" - element (from my current item),
either li.record
(if present) or div .container
the problem is to keep the hierarchy div.container > li.record
how can i check for that? (select UL, if not present select container)
thx