io ho questo codice che seleziona tutti i checkbox, ma in explorer mi da un errore:
impossibile ottenere la proprieta type,comando non supporato!
ma non dice dove. qualche idea di dove sbaglio?
<html>
<head>
<script>
function selectAll(nomeform) {
var f= document[nomeform].elements;
for(var i=0; i<f.length; i++) {
if(f[i].type="checkbox")
f[i].checked=true;
}
}
</script>
</head>
<body>
<?
echo"<form name='nomeform' method=\"post\" action=\" ".$path_to_community_noroot."messenger/cancella_messaggio.php\" target=\"answer\" onsubmit=\"window. open('','answer','height=100, width=250');\"> ";
input type=\"checkbox\" name='id[]' value='$myrow[0]'>
echo("<input type=\"button\" value=\"seleziona tutti\" onclick=\"selectAll('nomeform')\"> <INPUT type=\"submit\" value=\"cancella selezionati\" ></form>");
?>
</body>
</html>