Ciao,
devo fare in modo che spuntando il checkbox chiamato "hit" si spuntino tutti i check box contenuti nel form "modulo".
Qui sotto l'html:
E' corretto pensare di recuperare tutti gli elementi in questo modo?codice:<form name="modulo"> <input name="hit" type="checkbox" value="1" onClick="hit()"> <input name="del[]" type="checkbox" value="1"> <input name="del[]" type="checkbox" value="2"> ... <input name="del[]" type="checkbox" value="10"> </form>
Graziecodice:function hit() { elements = getElementsByTagName('del[]') }

Rispondi quotando