Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > it.comp.lang.javascript > #8296

form e tag input

From Daitarn4 <seeeeee@vabbe.net>
Newsgroups it.comp.lang.javascript
Subject form e tag input
Date 2019-02-07 13:08 +0100
Organization Aioe.org NNTP Server
Message-ID <q3h73h$iu4$1@gioia.aioe.org> (permalink)

Show all headers | View raw


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

Back to it.comp.lang.javascript | Previous | Next | Find similar


Thread

form e tag input Daitarn4 <seeeeee@vabbe.net> - 2019-02-07 13:08 +0100

csiph-web