W wxdqz New Member Aug 22, 2008 #1 How do I get JavaScript to find out which element of an array a certain string is? I tried: moves.indexOf(this.id) but apparently I'm not allowed to do that. Thanks, Alan.
How do I get JavaScript to find out which element of an array a certain string is? I tried: moves.indexOf(this.id) but apparently I'm not allowed to do that. Thanks, Alan.