Created
August 12, 2015 01:38
-
-
Save travislopes/66eb8bcb73741a9100f3 to your computer and use it in GitHub Desktop.
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
<?php | |
add_action( 'gform_enqueue_scripts_10', 'enqueue_dropdown_script', 10, 2 ); | |
function enqueue_dropdown_script( $form, $is_ajax ) { | |
wp_register_script( 'jquery-dropdown', 'js/jquery.dropdown.js', array( 'jquery' ) ); | |
wp_enqueue_script( 'gform-jquery-dropdown', 'js/gravityforms.dropdown.js', array( 'jquery', 'jquery-dropdown' ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment