0
I have a form on a "pagina1.php" page, so:
<form id="form1" action="pagina2.php"
</form>
After running an Ajax function, I add the following script into this form with . append():
<script id='mp_script' src="https://www.mercadopago.com.br/integrations/v1/web-payment-checkout.js"
data-preference-id="9999999">
</script>
Only that this Script does not run, as I do to run it after adding it with Ajax?
Obs. I cannot add this script any other way than with AJAX, as the "data-preference-id" attribute will change depending on what the user selects on the screen.