I would like to add a delay of 2 seconds to the following code:
if (length < 20 & warningContainer.is(\':empty\')){
warningContainer.html(minLengthMessage);
el.addClass(\'input-error\');
}
How do I do that?
I tried:
warningContainer.delay(2000).html(minLengthMessage);
PS: I have no clue how to code JQuery
Thank you