I have an auto-complete form at
The array looks somewhat like the following.
I need it to display what is inbetween the quotes, but I only want it to pass what is inbetween the brackets and then put into a hidden field called departCity.
Hope that made sense.
Is there anyway to do this?
Thanks in advance.
The array looks somewhat like the following.
Code:
$("#City").autocompleteArray(
[
"ANCHORAGE (ANC)", "AKIACHAK (KKI)", "ANIAK (ANI)", "ATMAUTLUAK (ATT)", "ATQASUK (ATK)", "BARROW (BRW)", "BETHEL (BET)", "FAIRBANKS (FAI)", "HOMER (HOM)"
],
Hope that made sense.
Is there anyway to do this?
Thanks in advance.