Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

112
Views
jquery: data is showing only 3 characters after using substring

I have some problem in jQuery. the below is the array in JSON format. If user type AAA then it should fetch the records from starting 3 characters. Currently, It is showing only 3 characters found but does not show full data.

var airports = ["AAA-Anaa, Anaa, French Polynesia", "AAC-El Arish-El Arish-Egypt-EG", "AAE-Annaba, Annaba, Algeria", "AAL-Aalborg, Aalborg, Denmark"]

index file has :

                url: 'js/airport.json',
                getValue: $.each(a, function(key, value) {
                        alert(key)
                    });
                ,
                list: {
                    match: {
                        enabled: true
                    }
                }
            };

 $('#fromairports').easyAutocomplete(options);
            $('#toairports').easyAutocomplete(options);
            $('#destination').easyAutocomplete(options);
            $('#multicityfrom').easyAutocomplete(options);
            $('#multicityto').easyAutocomplete(options);
            ```
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!