Created
December 29, 2017 13:19
-
-
Save New0/6122f08a966f44bf71225befc006ab4d to your computer and use it in GitHub Desktop.
Use jQuery to add tabindex to field group attributes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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