Hope I provided a clear title.
I am creating an array comprised of all options, trimming whitespace, and storing. (correct me if im wrong in my process). On input change, if option array returns false, clear the next field, else, store the unique new value and place in next field.
If array contains:
blue
black
brown
and I search for BLUE or Blue or BLue...etc, the result returns false. I guess im asking for caseInsensitive logic, but not sure how I can incorporate.
Ive done this all on trial and error so please feel free to refine if your time allots. Also, this needs to be within spec of jquery 1.3
http://jsfiddle.net/arkjoseph/dRpmq/2/
thank you for assistance.