maybe:
if ((match = dataArray[i].toLowerCase().indexOf(temp.toLowerCase()) >= 0)) {
so it doesn't need to be found at the very beginning
bootcom
10-15-2005, 07:33 AM
Unfortunately,
it still only looks for the first word in the input. Everything else is ignored :eek:
vwphillips
10-15-2005, 09:33 AM
Method to autocomplete the end text is to split the text input at the spaces and examine the charactors after the last space for a match.
If matched, replace the text with current text less the charactors after the last space plus the matched word.