jquery tabIndex fix

Posted by Victor on Stack Overflow See other posts from Stack Overflow or by Victor
Published on 2010-03-19T02:30:37Z Indexed on 2010/03/19 12:21 UTC
Read the original article Hit count: 306

Filed under:
|

On my pages(ASP.NET 3.5) where all input controls have tab order set whenever next input control is not enabled or hidden it goes to the address bar and then to next available control. To fix this behavior, i.e. make it land to the next available control w/o going to address bar I am trying to use jQuery:

$(':text,textarea,select').blur(function()
{
    $(this).next(':text, textarea, select').filter(':enabled:visible').focus();        

});  

But it still goes to the adress bar in some cases. What do I need to correct here?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about jQuery