Try to call "divboxes" instead of "rel"

Try to call "divboxes" instead of "rel"

Hi, I want to call the 3 divboxes (box1, box2 and box3) instead of the "rel" shown below. How can I do that? I tried to replace the $active.attr("rel") -1 to $active.attr("div") and also $active.attr("box1,box2,box3") without any effect :(

  1. <div class="divboxes" id="box1"><a href="#" rel="1">Tab 1</a></div>
        <div class="underbox" id="underbox1">Box1</div>
        <div class="divboxes" id="box2"><a href="#" rel="2">Tab 2</a></div>
        <div class="underbox" id="underbox2">Box2</div>
        <div class="divboxes" id="box3"><a href="#" rel="3">Tab 3</a></div>
        <div class="underbox" id="underbox3">Box3</div>





  1. $active.attr("rel") - 1;
Regards