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 7580199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:51:24+00:00 2026-05-30T17:51:24+00:00

I have an input box. When the input box is clicked, all items from

  • 0

I have an input box. When the input box is clicked, all items from the autocomplete source are displayed. When the user selects one item the input box is properly populated. Everything works fine… Nevertheless I am trying to have something more and I do not manage to see how to do it. I would like this first input box not to be editable by the user. Currently it is possible for him to enter manually a value. If I put readonly in my css, the input is not anymore clickable…. So I do not see how to do it. Oh by the way, in do not want to use a combo box. The input has to stay an input. Thank you very much in advance for the replies. Cheers. Marc.

http://jsfiddle.net/DeJQB/2/

My html:

<input type="text" id="my-input" />

My js:

$(function() {
    var availableTags = [
            "00","15","30","45"
        ];
    $("#my-input").autocomplete({
        source: availableTags,
        minLength: 0
    }).click(function() {
        $(this).val("");
        $(this).autocomplete("search");
    });
});​

​

  • 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-30T17:51:26+00:00Added an answer on May 30, 2026 at 5:51 pm

    Have you tried adding a HTML readonly attribute, as opposed to CSS? The following works fine for me:

    <input type="text" id="my-input" readonly="readonly" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string value from a user input box. I have to figure
I have an input box that takes values from 0-100. I want to prevent
i have one form which have some input box and some select box. i
I'm new to jQuery and I want to have a input box from a
I have several text box's where input is added. All these input are then
I have an input box <input type=text name=search id=search /> <img src=icon.png alt= id=doSearch
I have an input box which I want to handle two types of information,
In my ASP.NET page, I have an input box that has to have the
I have an HTML input box <input type=text id=foo value=bar> I've attached a handler
I have a small select box and an input box. But unfortunately the select

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.