Advertisement
olie480

Gravity Forms Split form tabindex issue

Nov 4th, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     /* This fixed Gravity Forms Half Page tabindex issue when usering gf_left_half and gf_right_half */
  2.    
  3.     var x = 0, y = 0;    
  4.     $( '.gf_left_half' ).each( function( i,el ){                       
  5.         if( $( el ).find('[name^=input_]').not('[type=hidden]').length ){
  6.             $( el ).find('[name^=input_]').not('[type=hidden]').attr( 'tabindex', i );
  7.             x++;
  8.         }
  9.     } );
  10.  
  11.     $( '.gf_right_half' ).each( function( i,el ){                              
  12.         if( $( el ).find('[name^=input_]').not('[type=hidden]').length ){
  13.             $( el ).find('[name^=input_]').not('[type=hidden]').attr( 'tabindex', x+(y+1) );
  14.             y++;
  15.         }
  16.     } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement