L
Leszek
In my form I've got some dropdown lists that are stored into an array
<select name="daneres[$idhotelu][$pomocnicza][]"
id="daneres[$idhotelu][$pomocnicza][]">
//opions
</select>
What is the way to send this array to javascript?
I need to check each row of the table searching for values >0
I try to use
var ObjFormSel1 = document.getElementById("daneres["+num1+"]["+num2"][]")
but i think it's not working because when i'm trying to do something like
this:
if( ( (ObjFormSel1[k].value)!=0) || (ObjFormSel1[k].selectedIndex!=0)){
wyb1=true;}
I'm getting error messages saying that an object is required.
What should I change to make it work?
Thanks.
Leszek
<select name="daneres[$idhotelu][$pomocnicza][]"
id="daneres[$idhotelu][$pomocnicza][]">
//opions
</select>
What is the way to send this array to javascript?
I need to check each row of the table searching for values >0
I try to use
var ObjFormSel1 = document.getElementById("daneres["+num1+"]["+num2"][]")
but i think it's not working because when i'm trying to do something like
this:
if( ( (ObjFormSel1[k].value)!=0) || (ObjFormSel1[k].selectedIndex!=0)){
wyb1=true;}
I'm getting error messages saying that an object is required.
What should I change to make it work?
Thanks.
Leszek