Rychertate
MIS
x value is passed into the function. It just gives a size value.
Within my for loop, I can't do the below.
document.myform.list" + i + ".checked = true;
//I ultimately want
document.myform.list1.checked = true;
document.myform.list2.checked = true;
document.myform.list3.checked = true;
//etc....until it reaches size x
<script language='Javascript'>
var checkflag = 'false';
function APPLYALL(x)
{
if (checkflag == 'false')
{
for (int i=0; i < x; i++)
{
if (document.myform.listi)
{
document.myform.list" + i + ".checked = true;
document.myform.NewRev" + i + ".value = document.myform.F4101Part.value;
}
checkflag = 'true';
return 'Uncheck All';
}
}
</script>
Within my for loop, I can't do the below.
document.myform.list" + i + ".checked = true;
//I ultimately want
document.myform.list1.checked = true;
document.myform.list2.checked = true;
document.myform.list3.checked = true;
//etc....until it reaches size x
<script language='Javascript'>
var checkflag = 'false';
function APPLYALL(x)
{
if (checkflag == 'false')
{
for (int i=0; i < x; i++)
{
if (document.myform.listi)
{
document.myform.list" + i + ".checked = true;
document.myform.NewRev" + i + ".value = document.myform.F4101Part.value;
}
checkflag = 'true';
return 'Uncheck All';
}
}
</script>