Skip to content

Instantly share code, notes, and snippets.

@New0
Created December 29, 2017 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save New0/6122f08a966f44bf71225befc006ab4d to your computer and use it in GitHub Desktop.
Save New0/6122f08a966f44bf71225befc006ab4d to your computer and use it in GitHub Desktop.
Use jQuery to add tabindex to field group attributes
//Replace #fld_8768091_1-wrap by the field ID found with developer console.
add_action( 'wp_footer', function(){
echo "<script>
jQuery(document).ready(function(){
jQuery('#fld_8768091_1-wrap').attr('tabindex','0');
jQuery('#fld_9970286_1-wrap').attr('tabindex','1');
jQuery('#fld_6009157_1-wrap').attr('tabindex','2');
});
</script>";
}, 10 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment