[CSS] & [JQUERY] [selettore] :focus

:focus (selettore CSS e jQuery) riguarda gli Elementi HTML che hanno il focus, ossia pronti a ricevere l’input dall’utente.

Sintassi

:focus {
  /* codice */
}

Esempi

<style>
input:focus { background-color: yellow; }
</style>
<input placeholder="clicca qui">

Contenuti correlati

Fonti esterne

css, jquery, selettori css e jquery

Related Articles

0 Comment

Rispondi