<script>
var CatArray = new Array(2)
CatArray[0] = 25
CatArray[1] = 30
CatArray[2] = 40
</script>
<script>
function CheckCategory(CatID)
{
for (i=0;1<CatArray.length;i++)
{
if (CatID == CatArray)
{
Do something
}
}
}
</script>
When I call the function CheckCategory it tells me that CatArray is not an object. How can I refer to it? Thanks for any help.
var CatArray = new Array(2)
CatArray[0] = 25
CatArray[1] = 30
CatArray[2] = 40
</script>
<script>
function CheckCategory(CatID)
{
for (i=0;1<CatArray.length;i++)
{
if (CatID == CatArray)
{
Do something
}
}
}
</script>
When I call the function CheckCategory it tells me that CatArray is not an object. How can I refer to it? Thanks for any help.