Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6790557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:44:21+00:00 2026-05-26T17:44:21+00:00

I am using older JQuery Autocomplete plug-in (the one shown here – http://view.jquery.com/trunk/plugins/autocomplete/demo/ ).

  • 0

I am using older JQuery Autocomplete plug-in (the one shown here – http://view.jquery.com/trunk/plugins/autocomplete/demo/). It is intended to be used for a Mobile app. The plug-in works just fine in the desktop browser. However, on the mobile device the plug-in list of auto-complete suggestions appears very, very small and is not readable at all.

I have tried to use “em” values for font-size and line-height in the CSS. Moreover, I have added this in the CSS –

@viewport {
  width: device-width;
}

But no luck! 🙁

I already have meta-viewport for my mobile app ad rest of the pages are just fine.

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>

As such, the JQuery plug-in seems to be working, because if I manage to click on one of those small rows – I am getting correct value in my text field. However, autocomplete list is too small to be readable and I am not able to figure out correct CSS to get this working. Any pointers/suggestions would be highly appreciated!

TIA,
– Manish

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:44:22+00:00Added an answer on May 26, 2026 at 5:44 pm

    I have got it fixed now. It was rather subtle issue that was not obvious while fixing the problem. I did dig a lot and played a lot with CSS including some of the suggestions @sandeep mentioned here. However, none worked – with hard-coded “height” attribute in the css for each <li> element of JQuery div, I managed to make rows bigger for JQuery auto-complete list – but still the contents of those rows were not showing. However, when I tapped the row – correct value would be substituted in the text box. It was rather puzzling and suggested that probably the AppleWebKit browser was not rendering the contents.

    The JQuery auto-complete list on the server had 3000+ <option> elements in it (we need different text for users and some short code for back-end), and AppleWebKit browser refused to show them as JQuery auto-complete rows (Firefox could show them without an issue), so finally I wrote small JS code for JQuery formatItem function –

            //needed as option list is not shown by AppleWebKit safari browser
        formatItem: function(item, position, length, search){
            var name ="";       
            var str = "" + item;            
            var start = str.indexOf('">') + '">'.length;
            var end = str.lastIndexOf("</");
            name = str.substring(start,end);
            return name; 
        }
    

    It extracts the label text of the option element and give it to JQuery auto-complete list. This fixed the problem and I am able to use JQuery auto-complete properly now on the mobile devices. I have tested it with Android & iPhone (our target devices) and found that it works great on both of them!

    Solved!! 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using a jquery autocomplete (plugin v 1.1) in an older application. It works
An older application using System.Web.Mail is throwing an exception on emails coming from hr@domain.com
Using: jquery3-autocomplete gem at 1.0.5 jquery-rails gem at 1.0.19 mysql2 gem at 0.2.7 The
I am using jquery autocomplete and trying to define the values for the auto
I am using jQuery autocomplete, and want to have a separate PHP file to
I'm using JQuery 1.4.2 for an accordion effect on my website. All but one
I have a drag and drop script using an older version of jquery which
I'm using jQuery autocomplete control to perform search on three entities: Owner, Manager and
I'm using an older version of jquery (1.6.2) and can't seem to get delegate
I am using jQuery UI Autocomplete plugin for better data input in my ASP.NET

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.