It seems I forgot to take my "Anti Donkey" medication today....
I had a space between the _ and the 00.
Thanks for the help, and for informing me about the evil ways of eval().
Cheers.
TennisLessons.com - The place to go to find a pro.
MathLessons.com - When the numbers don't add up.
OK, eval = evil = it's gone.
I changed it to
var tmp = document.pb.elements['ten_' + x].value;
But when I try to alert(tenmap[tmp]) I still get undefined....
I also tried getting the value directly (var tmp = document.pb.ten_1.value;), but that also return undefined.
When I alert tmp and...
I need some help.....
I have an associative array (tenmap).
I have a form with numbered hidden fields (num_1,num_2,num_3 etc..)
I'm trying to print the values from "tenmap" based on the values num_X
the while loop checks that ten_x exists, if it does I try to print the values.
I'm trying to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.