My scenario is as follows, I have a link and would like it after clicking it after 3 seconds submit a form. I'm trying the following
<a href="" target="_blank" id="acionabotao">Link</a>
<form method="post" action="acao.php">
<input name="" value="">
<button type="submit" id="clickatrasado">
</form>
$("#acionabotao").click(function(){
setTimeout(function() {
$("#clickatrasado").trigger('click');
}, 1000);
});