Created
July 14, 2014 20:33
-
-
Save sidharrell/0cb3086e1b71c71b9c51 to your computer and use it in GitHub Desktop.
EE4 js to make payment option auto-clicked if only one payment option available
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
jQuery(document).ready(function() { | |
jQuery('#spco-go-to-step-payment_options-btn').click(function() { | |
if (jQuery('.reg-page-payment-option-dv').length == 1) { | |
setTimeout(function(){jQuery('.reg-page-payment-option-dv').click();}, 2000); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment