fix: display thank you message to user if form submission is successful
This commit is contained in:
parent
c7d8799da1
commit
ab09b64ed5
|
@ -29,8 +29,8 @@ document.getElementById('applicationForm').addEventListener('submit', function(e
|
|||
})
|
||||
.then(result => {
|
||||
console.log('Success:', result);
|
||||
responseMessage.textContent = 'Thank you for your application!';
|
||||
responseMessage.className = 'success';
|
||||
const formContainer = document.getElementById('applicationForm');
|
||||
formContainer.innerHTML = '<h2>Thank you for your application!</h2>';
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error:', error);
|
||||
|
|
Loading…
Reference in New Issue