tags:

views:

274

answers:

2

hi,

I have below code in html.

<li class="selected" runat="server" id="lihome"><a href="/ISS/home.aspx" title="Home"><span>Home</span></a></li>

Now I want to start my tabbing from this li when my page get loaded. Please suggest how to do this.

Thanks.

Best Regards,

MS

A: 

You should focus the anchor element inside the "selected" LI, since only form elements, anchors and iframes are focusable:

$(function () { 
  $('li.selected a').focus(); 
});
CMS
Thanks Dude! for your help!
MKS
You're welcome!
CMS
A: 
$(function () { 
  $('#lihome a').focus(); 
});
rahul