Superwormy
Golden Member
for (var key = 0; key < formobj["category[]"].length; key++) {
var thingama = formobj["category[]"][key];
alert ("it is: " + thingama);
}
Thats what i have... it doesn't work. Basically theres a multiple select box named category[] in an HTML form, the form is passed to javascript with an onsubmit="return FunctionName(this)"
All I want to do is loop through that category array and print out the values... how?
var thingama = formobj["category[]"][key];
alert ("it is: " + thingama);
}
Thats what i have... it doesn't work. Basically theres a multiple select box named category[] in an HTML form, the form is passed to javascript with an onsubmit="return FunctionName(this)"
All I want to do is loop through that category array and print out the values... how?