mt25
09-25-2003, 06:03 AM
hi guys,
i have a little problem in the following JS Code.
I have 44 Form elements.
The code below checks if every single element is klicked.
But the code should check, if only one of the 44 elements is clicked.
What I`m doing wrong?
-------------------------
function checkform()
{
var i = 0;
var number = 45;
while (i< number){
if (document.form.elements[i].checked == false) {
alert("Please klick...");
return false;
}
i ++;
}
}
thx
mt
i have a little problem in the following JS Code.
I have 44 Form elements.
The code below checks if every single element is klicked.
But the code should check, if only one of the 44 elements is clicked.
What I`m doing wrong?
-------------------------
function checkform()
{
var i = 0;
var number = 45;
while (i< number){
if (document.form.elements[i].checked == false) {
alert("Please klick...");
return false;
}
i ++;
}
}
thx
mt