Hi
i have read this FAQ and i search the forum but i dont understand how i can do this
(i know that i had to do it with javascript, inserted at: code=> load js, but how that js had to look?):
i have:
a checkbox name=more1 id=more1
a input text field name=material1 id=material1
a input text field name=menge1 id=menge1
a input text field name=einheit1 id=einheit1
a checkbox name=more2 id=more2
a input text field name=material2 id=material2
a input text field name=menge2 id=menge2
a input text field name=einheit2 id=einheit2
and so far, till 20
the input fields should only be visible when checkbox is checked, and the checkbox of the value below should only be visible when checkbox above is checked.
for example at the beginning only checkbox 1 is visible, after check that box, the three inputfields with a 1 inside and checkbox 2 are visible, with a klick on checkbox 2, inputfields with 2 inside and checkbox 3 are visible, and so far.
can someone give me additional help, how to solve that.
i have no problem to extend a code for 20rows when i have the code for 1 or better 2rows.
if it is easier all checkboxes could be replaced by a single dropdown with values 1-20.
thanks for any help that i get.
best regards
grafik
Edit: removed not working code
i have read this FAQ and i search the forum but i dont understand how i can do this
(i know that i had to do it with javascript, inserted at: code=> load js, but how that js had to look?):
i have:
a checkbox name=more1 id=more1
a input text field name=material1 id=material1
a input text field name=menge1 id=menge1
a input text field name=einheit1 id=einheit1
a checkbox name=more2 id=more2
a input text field name=material2 id=material2
a input text field name=menge2 id=menge2
a input text field name=einheit2 id=einheit2
and so far, till 20
the input fields should only be visible when checkbox is checked, and the checkbox of the value below should only be visible when checkbox above is checked.
for example at the beginning only checkbox 1 is visible, after check that box, the three inputfields with a 1 inside and checkbox 2 are visible, with a klick on checkbox 2, inputfields with 2 inside and checkbox 3 are visible, and so far.
can someone give me additional help, how to solve that.
i have no problem to extend a code for 20rows when i have the code for 1 or better 2rows.
if it is easier all checkboxes could be replaced by a single dropdown with values 1-20.
thanks for any help that i get.
best regards
grafik
Edit: removed not working code