On my landing page, I have a single input field where users can enter their email address. Upon successful entry...
success: function(result){
console.log(result.status);
if(result.status == true) {
$('input').attr("style", "color:green");
$('input').delay(5000).val("");
} else {
$('input').attr("style", "color:red");
$('input').delay(5000).val("");
}
}
However, I'm facing an issue where the delay function does not seem to be working as intended. Am I making a mistake or is there another way to approach this?