1
document.addEventListener("DOMContentLoaded", function () {
const form = document.querySelector('.elementor-form');
if (form) {
form.addEventListener("submit", function (event) {
event.preventDefault();
const amountField = form.querySelector('input[name="amount"]');
const amount = amountField ? amountField.value : null;
if (!amount) {
alert("Please enter a valid amount.");
return;
}
const upiLink = `upi://pay?pa=azuritekpl@sbi&tn=Payment%20for%20course%20fee&am=${encodeURIComponent(amount)}&cu=INR`;
window.open(upiLink, '_self');
});
}
});