I have a select box in my form with around 400 addresses. To make it easier for people to find the right address i'd like to give people a small input text box next to the select box that would allow the user to search for one of the addresses in the select box a lot quicker by searching for the persons name.
I've found a few scripts that do this, but the problem i have is the format my addresses are in and unfortunately i cannot change the format. Here's an example:
AAA - Mr Tester, Test Field, Testtown, etc.
AAA - Mr Aaron, Test Field, Testtown, etc.
AAA - Mr Aaronson, Test Field, Testtown, etc.
BBB - Mr John, Test Field, Testtown, etc.
BBB - Mr Hello, Test Field, Testtown, etc.
CCC - Mr Pilkington, Test Field, Testtown, etc.
CCC - Mr Mouse, Test Field, Testtown, etc.
With all the scripts i've found they search starting at the beginning of the string but not the entire string...so for example typing in B would find the addresses starting with BBB but what if want to search for "Pilkington" (which is what id actually want to search for)...
I've found a few scripts that do this, but the problem i have is the format my addresses are in and unfortunately i cannot change the format. Here's an example:
AAA - Mr Tester, Test Field, Testtown, etc.
AAA - Mr Aaron, Test Field, Testtown, etc.
AAA - Mr Aaronson, Test Field, Testtown, etc.
BBB - Mr John, Test Field, Testtown, etc.
BBB - Mr Hello, Test Field, Testtown, etc.
CCC - Mr Pilkington, Test Field, Testtown, etc.
CCC - Mr Mouse, Test Field, Testtown, etc.
With all the scripts i've found they search starting at the beginning of the string but not the entire string...so for example typing in B would find the addresses starting with BBB but what if want to search for "Pilkington" (which is what id actually want to search for)...