Visualizzazione dei risultati da 1 a 5 su 5

Discussione: +1 ad un textfield

  1. #1

    +1 ad un textfield

    E' una domanda molto stupida ma la ricerca è disabilitata, su google nn ho trovato niente e io non chiappo molto...

    cliccando du un bottone devo aggiungere 1 (+1) ad un campo di testo dentro una form che si chiama form1.

    document.form1.textfield.value+=1;

    non va bene...

    Grazie.
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  2. #2
    codice:
    document.form1.textfield.value=document.form1.textfield.value+1;
    ciao

  3. #3
    Però se nel textfield ho "0" mi mette "01", non può fare una somma?
    Sorry^__^per il disturboz
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  4. #4
    codice:
    document.form1.textfield.value=parseInt(document.form1.textfield.value)+1;
    ciao

  5. #5
    perfetto...

    Ciao!
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

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 © 2025 vBulletin Solutions, Inc. All rights reserved.