Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


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

form e tag input

Path csiph.com!aioe.org!.POSTED.Hinm3MfFhlOZV3WbYWBbEA.user.gioia.aioe.org!not-for-mail
From Daitarn4 <seeeeee@vabbe.net>
Newsgroups it.comp.lang.javascript
Subject form e tag input
Date Thu, 7 Feb 2019 13:08:17 +0100
Organization Aioe.org NNTP Server
Lines 14
Message-ID <q3h73h$iu4$1@gioia.aioe.org> (permalink)
NNTP-Posting-Host Hinm3MfFhlOZV3WbYWBbEA.user.gioia.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding 8bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
X-Mozilla-News-Host news://nntp.aioe.org:119
X-Notice Filtered by postfilter v. 0.9.2
Content-Language it
Xref csiph.com it.comp.lang.javascript:8296

Show key headers only | 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