Set TextBox Value From Checked/unchecked Checkbox

Discussion in 'Java' started by soprandi, Nov 29, 2006.

  1. soprandi

    soprandi Guest

    Hi I have a question, I need to set a new Value in a TextBox, and I
    need to do so looking for CheckBox unchecked properties.

    this i my code....


    <input type="text" readonly="yes" name="nome"
    value="${righe_elenco.nome}" />
    <input type="text" size="32" readonly="yes" name="descrizione"
    value="${righe_elenco.descr}" />
    <input type="text" size="3" readonly="yes" name="prezzo"
    value="${righe_elenco.prezzo}" />
    <input type="hidden" size="2" readonly="yes"
    name=cod_pizza${righe_elenco.id_pizza} value="${righe_elenco.id_pizza}"
    />
    <input type="checkbox" name="selezione"
    value="${righe_elenco.id_pizza}">
    <input type="text" maxlength="2" name="Qta" size="2" value="0" id="<%=
    ciclo %>">


    Ok I have some Text and Check Box, and I want to set Textbox Value to
    "0" when CheckBox are note Checked or UnChecked.... what can I do??

    I need to use javascript code? jsp code?

    Thanks

    Simone
    soprandi, Nov 29, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. yurps
    Replies:
    1
    Views:
    6,855
    rajeshthangarasu1983
    Feb 29, 2008
  2. runescience
    Replies:
    0
    Views:
    4,223
    runescience
    Feb 23, 2006
  3. cteb
    Replies:
    1
    Views:
    4,963
    GArlington
    Oct 13, 2008
  4. RVic
    Replies:
    19
    Views:
    1,351
  5. Replies:
    1
    Views:
    2,301
Loading...

Share This Page