Se ho un codice così:
<form action="mypage.php" method="post">
blabla
</form>
come posso fare il submit via javascript?
posso dargli un id in qualche modo?
Grazie.
Se ho un codice così:
<form action="mypage.php" method="post">
blabla
</form>
come posso fare il submit via javascript?
posso dargli un id in qualche modo?
Grazie.
GdR Online - http://lenar.it/
Yesterday is history. Tomorrow is mystery.
Today is a gift. That's why it's called the present
document.nomeForm.submit();
ovviamente
<form action="page.php" name="nomeForm" method="post">
appunto...se non ho il nome del form?
GdR Online - http://lenar.it/
Yesterday is history. Tomorrow is mystery.
Today is a gift. That's why it's called the present
se hai un solo form
document.getElementsByTagName('form')[0].submit()
Vuoi aiutare la riforestazione responsabile?
Iscriviti a Ecologi e inizia a rimuovere la tua impronta ecologica (30 alberi extra usando il referral)