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

144
Views
My jQuery custom autocomplete focus/select ui item refer to the source not to the item

I encountered an issue on the options select and focus of a custom autocomplete of jQuery. The ui.item should select the item selected but it selects data from the source.

I searched on Google and I can't find anyone with the same issue as me. Apart from this the code works fine. How can I fix the problem?

$("#RefProductHome").catcomplete({
  source: data,
  delay: 0,
  focus: function(e, ui) {
    console.log(ui.item) // => data
  }
});

Order of the script: 1- Création custom catcomplete 2- Get data from two different api 3- Merge in two result i

  1. Création custom catcomplete
  2. Get data from two different api
  3. Merge the two result from api in data
  4. Start catcomplete()
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!