J
jodleren
Hi
I want the code below to find checkboxes only with a name, say
starting with "blabla_" (I have a number after that). How do I do
that?
WBR
Sonnich
function SelectAll(value)
{
form1 = document.forms[0];
for(j = 0; j < form1.elements.length; j++)
{
if(form1.elements[j].name.toLowerCase() == 'checkbox')
form1.elements[j].checked=value;
}
}
I want the code below to find checkboxes only with a name, say
starting with "blabla_" (I have a number after that). How do I do
that?
WBR
Sonnich
function SelectAll(value)
{
form1 = document.forms[0];
for(j = 0; j < form1.elements.length; j++)
{
if(form1.elements[j].name.toLowerCase() == 'checkbox')
form1.elements[j].checked=value;
}
}