Visualizzazione dei risultati da 1 a 3 su 3
  1. #1
    Utente di HTML.it
    Registrato dal
    Mar 2007
    Messaggi
    1,611

    riportare testo scritto in input text

    sicuramente l'argomento è stato trattato però non so proprio cosa cercare...

    praticamente voglio fare in modo che man mano che scrivo in un input text, contemporaneamente quello che scrivo mi viene riportato nell'input text sotto...

    tipo quando si scrivono i commenti su edit.html.it

    grazie
    NON ABBANDONATE CANI O GATTI!!!

  2. #2
    Codice PHP:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <
    html>
    <
    head>
    <
    title>Untitled Document</title>
    <
    meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <
    script type="text/JavaScript">
    window.onload=function(){
    var 
    unodocument.getElementById('uno_');
    uno.onkeyup=function(){
    var 
    duedocument.getElementById('due_');
    due.valuethis.value;
    }
    }
    </script>

    </head>

    <body>
    <input id="uno_" name="uno" type="text">

    <input id="due_" name="due" type="text">
    </body>
    </html> 

    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

  3. #3
    Utente di HTML.it
    Registrato dal
    Mar 2007
    Messaggi
    1,611
    perfetto grazie

    anche se mi è poco chiara :master:
    NON ABBANDONATE CANI O GATTI!!!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.