In this code that I gave you:
Code:
// for first version above, array of arrays:
if ( listEntry[0].search(re) != -1)
{
selectObj[numShown++] = new Option( listEntry[0], listEntry[1] );
}
// for second version above, array of objects:
if ( listEntry.name.search(re) != -1)
{
selectObj[numShown++] = new Option(listEntry.name, listEntry.url );
}
you were supposed to use *EITHER*
the red code *OR*
the magenta code.
It will *NEVER* work if you try to use *BOTH*.
Go back and read my message on this again.