Skip to content

Instantly share code, notes, and snippets.

View oscarCrespo's full-sized avatar

Oscar Crespo oscarCrespo

View GitHub Profile

Keybase proof

I hereby claim:

  • I am oscarcrespo on github.
  • I am oscrespo (https://keybase.io/oscrespo) on keybase.
  • I have a public key ASCItLYcc0FfAPWZYTNHCtJxxIb3sDb6B_up4z1yslO78wo

To claim this, I am signing this object:

@oscarCrespo
oscarCrespo / Gravity_forms_tabindex_fix
Last active February 3, 2016 17:55
Fix the tab index issues when using more than one gravity form on a single page
/* Fix the tab index issues when using more than one gravity form on a single page */
(function($){
var $forms=$('form');
var form_qty=0;
for (i in $forms){
var formType = $forms.eq(i).attr('method');
if (formType == 'post'){
form_qty ++
}
}