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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:00:32+00:00 2026-05-26T19:00:32+00:00

Like the question says, I am trying to capture a click on a textbox

  • 0

Like the question says, I am trying to capture a click on a textbox that is disabled.

Now, there may be a better way to do this, but right now I don’t know it. Basically I have a textbox that is disabled sitting in a div. It is merely a placeholder. I have an event that captures the click on anywhere within it’s parent div. Because the textbox is disabled, this does not work.

Does anyone know of a way to either:

  1. Keep textbox enabled but don’t allow the user to enter any input or display a cursor. (Essentially make it just a static textbox that the user can’t interact with at all)

or

  1. Disable textbox like I am now, but continue to capture the click events.

This is what the input looks like:

<li id="test_id" class="selected">
  <label id="" for=""> Untitled</label>
  <input id="text" type="textbox" name="default" disabled="disabled">
  <div class="field_actions">
  <span class="propertiesTip"></span>
</li>

and this is what the click event handler looks like:

$('#parent').on('click' , 'li, label, textbox', function (event) { /*...*/ }

This handles a click anywhere inside the div. It doesn’t work on the textbox if it is disabled. Anyone encounter this before and have a solution? Thanks in advance

  • 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-26T19:00:33+00:00Added an answer on May 26, 2026 at 7:00 pm

    I know this was mentioned, but I would use read only. You can use CSS to style it to look disabled, and even to change the cursor to whatever you want like so:

    input.myDisabledInput {
    
    color: grey;
    background-color: lightgray;
    cursor:default
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may seem like a simple question however i've spent the last hour trying
Kind of like this question I have many text snippets that I use many,
You may think this question is like this question asked on StackOverflow earlier. But
Like the title says, I'm trying to find elements of M that exist in
Question says it all. Is there a way to enforce case sensitivity in VB.Net
I've searched for at question like this and i dont think there are one.
The question says it all, really. I know a (Scala) Monad looks like this:
Like the question says, if I have a request for a page on my
Like this question , except T-SQL instead of php. 206275947 = 2062759.47 etc. The
Like my question, i need to generate random numbers that have identical pairs between

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.