The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Javascript Version of PHP in_array()
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? |
#2
|
||||
|
||||
UPDATE:
I didn't find it... what I ended up doing is a bunch of OR statements, which is really messy, but end users wont' be looking at the code... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|