Membership Form
Membership Form
Membership Form
DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<form id="send-mail">
<div>
<label for="name">Name</label>
</div>
<div>
</div>
<div>
<div>
</div>
<div>
<div>
</div>
</div>
<br />
<button id="btn">Submit</button>
</form>
<script type="text/javascript">
/**
* */
/**
* */
/**
* */
/**
*/
*/
resedentialStatusInputs.forEach(element => {
residential_status = e.target.value
})
})
/**
*/
setTimeout(() => {
sent = true
resolve(sent)
}, 3000)
})
}
/**
* Submit application
*/
sendMail().then((sent) => {
// sent - let's say if fake sending email is sent successfully. it returns true or false
if (sent) {
setInterval(() => {
btn.innerText = 'Submit' // text=Submit
window.location.href = `success.html?name=${name}&age=${age}&address=$
{address}&profession=${profession}&residential_status=${residential_status}`
}, 1500)
} else {
}).catch((error) => {
console.error(error)
})
})
</script>
</body>
</html>