Set TextBox Value From Checked/unchecked Checkbox

S

soprandi

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top