What I want to achieve:
- Hide Form Area after button click (DONE)
- Show submit confirmation message on button click (DONE)
- Hide Show submit confirmation message after showing it for 5 seconds
- Show form area again
I'm stuck on point 3 & 4 and would appreciate any hints. I have tried the set time out function but without luck.I must be doing something wrong.
function hideDiv() {
document.getElementById('FormArea').style.display = "none";
}
function showDiv() {
document.getElementById('submitarea').style.display = "block";
}
setTimeout(function() {
$('#submitarea').fadeOut('fast');
}, 1000); // <-- time in milliseconds
