Hello, long time no ask
I have this problem... seems to work fine if i put it like this
function cerrarTimeout() {
setTimeout("cerrar()",1400);
}
But i want to pass a variable to cerrar() and it wont work like this
function cerrarTimeout(id) {
setTimeout(cerrar(id),1400);
}
nor like this
function cerrarTimeout(id) {
setTimeout("cerrar("+id+")",1400);
}
even tried this
setTimeout(function cerrarTimeout(id) {
cerrar(id)},1400);
Thanks