Código Javascript
:
Ver originalfunction selectall(form)
{
var formulario = eval(form)
for (var i=0, len=formulario.elements.length; i<len ; i++)
{
if ( formulario.elements[i].type == "checkbox" )
formulario.elements[i].checked = formulario.elements[0].checked
}
}
Código HTML:
Ver original<input type="checkbox" onclick="selectall(document.forms[0])" />
saludos