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

189
Views
Autocomplete - how to change ul to div

There is a standard jQuery Autocomplete template with this search hint structure: ul -> li, but I can't figure out how to change ul to div. Please explain me how to do it.

.data("ui-autocomplete")._renderItem =
        function (ul, item) {
            return $('<li>')
                .data("item.autocomplete", item)
                .addClass("mse2-ac-wrapper")
                .append($("<div>").addClass('mse2-ac-link').html(item.label))
                //.append("<a class=\"mse2-ac-link\">" + item.label + "</a>")
                .appendTo(ul);
        };
about 4 years ago · Santiago Gelvez
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!