Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

form e tag input

9 views
Skip to first unread message

Daitarn4

unread,
Feb 7, 2019, 7:08:19 AM2/7/19
to
Ciao, ho questo html con un form, un unico campo e un bottone OK.

<form method="post" autocomplete="off" class="centra">
<input type="text" id="codice" name="codfis" required="on"
placeholder="inserisci c.f." autofocus="on" autocomplete="off"><br>
<button type="button" onclick="cercaCF()">OK</button>
</form>


così il mio script js parte quando l'utente preme su OK. C'è un modo per
farlo partire anche nel caso in cui dopo aver scritto nel campo input
l'utente prema semplicemente invio senza cliccare su OK? Come?

Grazie
0 new messages