title: I want to switch one tab to another tab on last element of current tab in javascript
body: <p>i Write This code for that</p>
  
  <pre><code>$(document).on('keydown','form input :nth-last-child(3)',function(e){
     var keyCode = e.keyCode || e.which;
     if (keyCode == 9) {
        var $parent=$('form').parents('.ui-tabs');
        if($parent.length&gt;0) {
           var tabid=$parent.attr("id");
           var current= $( "#"+tabid ).tabs( "option", "active" );
           $( "#"+tabid ).tabs({ active: current +1 });
        }
     }
  });
  </code></pre>