If you have multiple buttons where you want to initialize the Payrexx modal, you need to change the default code as per following instructions:
Replace the following attribute in all links / buttons:
- id="btn-payrexx-modal"
with
- class="btn-payrexx-modal"
and replace the javascript code with:
jQuery(".btn-payrexx-modal").each(function() { jQuery(this).payrexxModal();});
This initializes the Payrexx Modal on all links / buttons with the class "btn-payrexx-modal".
Please note that the Payrexx modal library and jQuery should only be present once in your HTML code.