Hello,
until now I have not found the mistake that I made. My source code for
checking how many checkboxes or radiobuttons are used:
<script language="JavaS cript"><!--
function pruefen(){retur n true}
//-->
</script>
<script language="JAvaS cript1.1"><!--
function pruefen(f){
var i;
var k=0;
document.forms[f].elements;/* here I can't find any syntax for an
object(mainly I was trying with a book and there is no description
about objects)*/
for(i=0; i < f.elem.length; i++){
if ('checkbox' == elem[i].type)
{
if(elem[i].checked)
k++;
}
}return true; //(or k)
}
//-->
After that I need to check k.
<form onSubmit="retur n pruefen(this)"> </form>
Many thanks
until now I have not found the mistake that I made. My source code for
checking how many checkboxes or radiobuttons are used:
<script language="JavaS cript"><!--
function pruefen(){retur n true}
//-->
</script>
<script language="JAvaS cript1.1"><!--
function pruefen(f){
var i;
var k=0;
document.forms[f].elements;/* here I can't find any syntax for an
object(mainly I was trying with a book and there is no description
about objects)*/
for(i=0; i < f.elem.length; i++){
if ('checkbox' == elem[i].type)
{
if(elem[i].checked)
k++;
}
}return true; //(or k)
}
//-->
After that I need to check k.
<form onSubmit="retur n pruefen(this)"> </form>
Many thanks
Comment