Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* This fixed Gravity Forms Half Page tabindex issue when usering gf_left_half and gf_right_half */
- var x = 0, y = 0;
- $( '.gf_left_half' ).each( function( i,el ){
- if( $( el ).find('[name^=input_]').not('[type=hidden]').length ){
- $( el ).find('[name^=input_]').not('[type=hidden]').attr( 'tabindex', i );
- x++;
- }
- } );
- $( '.gf_right_half' ).each( function( i,el ){
- if( $( el ).find('[name^=input_]').not('[type=hidden]').length ){
- $( el ).find('[name^=input_]').not('[type=hidden]').attr( 'tabindex', x+(y+1) );
- y++;
- }
- } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement