Skip to content

Commit

Permalink
* Make checkout form submit event handler specific enough to match on…
Browse files Browse the repository at this point in the history
…ly checkout form and not others.
  • Loading branch information
MaximilianoRicoTabo committed Jan 22, 2024
1 parent a5382a5 commit 8488598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/pmpro-checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jQuery(document).ready(function(){
}

// Find ALL <form> tags on your page
jQuery('form').submit(function(){
jQuery('form#pmpro_form').submit(function(){
// On submit disable its submit button
jQuery('input[type=submit]', this).attr('disabled', 'disabled');
jQuery('input[type=image]', this).attr('disabled', 'disabled');
Expand Down

0 comments on commit 8488598

Please sign in to comment.