I have a loop that creates 20 check-boxes in the same page (it creates different forms). I want via chrome developer tools to
function checkAll(bx)
{
var cbs = document.getElementsByTagName('input');
for(var i=0; i < cbs.length; i++)
{
if(cbs[i].type == 'checkbox')
{
cbs[i].checked = bx.checked;
}
}
}
If you want to it from developer tools then remove parameter of function and put the value as "true" or "false" instead of "bx.checked"