try this....
$("#test ul li").each(function(){
        $(this).children("a").attr("rel");
});
--
with regards
Jilani Jidni
On Thu, Jul 9, 2009 at 1:24 PM, $@!fulâ„¢ <anm.saiful@...> wrote:
<div id="test">   <ul>      <li><a rel="x" href="#">X</a></li>       <li><a rel="y" href="#">Y</a></li>       <li><a rel="z" href="#">Z</a></li>   </ul></div>Â$("#test ul li").each(function(){   $(this).......});The $(this) will select a single li element.Now i want to access the rel attribute of a element under the li (ie. $(this))How it could be possible?I need to get the value of rel attribute of each li.Â