There was a need to create a text field that might be given city names, however, if you completed the word in the field when you started the first digits.
I need some idea, function with Arrays
literals, something like this:
<script language="javascript">
function autocompletar()
{
cit = ["uberaba","araxa","colombia"];
str = document.all.txt.value;
for (var i in cit)
{
if (document.all.txt.value.length > 1)
{
str.match(document.all.txt.value=cit[i])
{
}
}
}
}
</script>
Dispensing Libraries Nothing personal, just not interested.