chcialem zrobic cos takiego zeby po zaznaczeniu pola typu checbox oblokowywaly sie inne pola, lecz dziala to tylko jesli jest umieszczone w jednym div-ie, a chcialem poumieszczac to w oddzielnych divach i wtedy przestaje mi dzialac :/ swita mi pomysl zeby to jakos po identyfikatorze wywolywac ale nie wiem jak to uczynic.. pomoglby ktos?
<input type="checkbox" name="wyzywienie_on" onclick=" this.form.elements['sniadanie'].disabled = this.form.elements['obiad'].disabled = this.form.elements['kolacja'].disabled = this.form.elements['obiadokolacja'].disabled = this.form.elements['calodzienne'].disabled = this.form.elements['ch_s'].disabled = this.form.elements['ch_o'].disabled = this.form.elements['ch_ok'].disabled = this.form.elements['ch_k'].disabled = this.form.elements['ch_c'].disabled = !this.checked" />dostępne <br /> śniadanie: <input type="text" name="sniadanie" size="10" disabled="disabled" />zł Obiad: <input type="text" name="obiad" size="8" disabled="disabled" />zł Obiadokolacja: <input type="text" name="obiadokolacja" size="8" disabled="disabled" />zł Kolacja: <input type="text" name="kolacja" size="12" disabled="disabled" />zł Całodzienne: <input type="text" name="calodzienne" size="12" disabled="disabled" />zł <input type="checkbox" name="ch_c" value="ON" disabled="disabled" />wliczone