TalkHardRandy
02-26-2003, 11:38 PM
Title says it all...
I love the PHP in_array() and use it quite a bit. But in order to get my my code to display in a template, I need to get that same functionality in JavaScript, but I don't think such a function exists...
Esentially, I'm generating a table with numbers in it. If the cell number is in an array, it changes the background of the table. Works great it PHP, but I have no idea how to do it in JavaScript.
Any ideas?
I love the PHP in_array() and use it quite a bit. But in order to get my my code to display in a template, I need to get that same functionality in JavaScript, but I don't think such a function exists...
Esentially, I'm generating a table with numbers in it. If the cell number is in an array, it changes the background of the table. Works great it PHP, but I have no idea how to do it in JavaScript.
Any ideas?