[Javascript] HELP

Iztok Polanic iztokp at amis.net
Thu Aug 8 17:45:56 CDT 2002


Hi!

Some strange things are going on in javascript world...... :(
I have this function:

function vnos(id) {
 for (var j = 1; j == stPoglavij; j++) {

  var temp1 = 'arrayPoglavja'+j;
   temp1 = eval(temp1);

  temp1 = temp1[0].indexOf(id,1);

  if (temp1 != '-1') {
   document.forms["Forma"].elements["poglavje"+id].value = 'on';
  }
}
}

And javascript wont and wont go into this for loop. WHY THE HELL NOT? :(
One more thing....what is the correct expression to turn on the checkbox
(bellow)?

document.forms["Forma"].elements["poglavje"].value = 'on'

Please help me!

Bye,

Iztok




More information about the Javascript mailing list