get rel from div

FlIbechieli

New Member
here Html given below \[code\] <div class="navBulletsWrapper"><div rel="0" class=""></div><div rel="1" class=""></div><div rel="2" class=""></div><div rel="3" class=""></div><div rel="4" class="active"></div><div rel="5" class=""></div><div rel="6" class=""></div><div rel="7" class=""></div></div>\[/code\]i want to get rel value of div having class active tried \[code\]$('.navBulletsWrapper .active')[0].attr('rel')\[/code\]but fails because div doesn`t have attr
 
Back
Top