Hi. Ive this code :
<div class="content">
<div class="tlcontent">
<div class="sideon" id="sideline0">
somethings
</div>
<div class="trackon" id="trackline0">
somethings
</div>
<div class="sideon" id="sideline1">
somethings
</div>
<div class="sideon" id="sideline2">
somethings
</div>
</div>
</div>
i need a function that check the next element in the dom and get the classname. For example, if i get sideline0, the function will return "trackon" (classname of the next element). If i get sideline1, it must return "sideone" and so on..
any idea? cheers