tengo esta funcion:
Código Javascript:
Ver original
function close_day(){ var agree=confirm('Are you shure that you want to close the day ?'); if (agree) { document.f1.getElementById('close_day').submit(); } else return false ; }
lo que necesito es que al confirmar el OK, me ejecute un boton submit de un formulario.
Este formulario tiene como id F1 y el boton submit id Close_day.
Alguna idea de como hacerlo?
Desde ya muchas gracias por el tiempo prestado