PHP Classes

Using the same Autofill list with multiple input fields

Recommend this page to a friend!

      AutoFill  >  All threads  >  Using the same Autofill list with...  >  (Un) Subscribe thread alerts  
Subject:Using the same Autofill list with...
Summary:Using the same Autofill list with multiple input fields
Messages:1
Author:Barry Nesbit
Date:2009-08-24 16:02:08
 

  1. Using the same Autofill list with...   Reply   Report abuse  
Picture of Barry Nesbit Barry Nesbit - 2009-08-24 16:02:08
Has anyone tried to create an Autofill list that can be used on multiple input text fields without having to create multiple arrays with the same values?

I'd like to do this for an input field in which you specify a user name, on a form where there may be up to a dozen fields to capture user names. There are many users in the autofill array, so I don't want to write it out in the JavaScript more than once, instead re-using the one array on each of the input fields. Trying this as the script is currently written doesn't work.

I was hoping someone had experience with trying this before I have a crack at it.