Keep tab index order if element is hidden - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:hide

Description

Keep tab index order if element is hidden

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
  <script type="text/javascript">
$(function(){/*www . ja  v a  2s.  c om*/
    $('#test').focus(function(){
        $(this).animate({opacity:0}, function(){
            $(this).css({width:0,mragin:0,padding:0});
        });
    });
});

      </script> 
 </head> 
 <body> 
  <input value="0"> 
  <input id="test" value="1"> 
  <input value="2">  
 </body>
</html>

Related Tutorials