diff --git a/src/pretix/plugins/paypal2/static/pretixplugins/paypal2/pretix-paypal.js b/src/pretix/plugins/paypal2/static/pretixplugins/paypal2/pretix-paypal.js index 75ff8f40f9..98c9692804 100644 --- a/src/pretix/plugins/paypal2/static/pretixplugins/paypal2/pretix-paypal.js +++ b/src/pretix/plugins/paypal2/static/pretixplugins/paypal2/pretix-paypal.js @@ -272,7 +272,7 @@ var pretixpaypal = { // The first selector is used on the regular payment-step of the checkout flow // The second selector is used for the payment method change view. // In the long run, the layout of both pages should be adjusted to be one. - let textselector = $("label[for=input_payment_paypal_apm]"); + let textselector = inputselector.closest("label"); let textselector2 = inputselector.next("strong"); let eligibles = [];