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

  • Home
  • SEARCH
  • 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 8321043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:52:53+00:00 2026-06-08T22:52:53+00:00

I have a textbox and its label in the page. By default if you

  • 0

I have a textbox and its label in the page. By default if you have a textbox in the page it will support tap to paste feature in iPad. In my case too I am able to tap and paste.

<div class="labelwrap">
<label for="srl_input" >Serial Number...</label>
<input type="text" id="srl_input" class="serial_input">
</div>

But if I will use css and keep this label inside the textbox then I lose this feature. I think when I tap on the textbox actually it is the label which gets the focus and hence I don’t see any option to paste. If I set display: none to the label then I can use tap to paste. Infact if I set z-index: -1 in that case too I can paste the text. But in both of these cases the label is not shown inside textbox ( obviously 🙂 ).

Please let me know how can I have the label inside the textbox and still have the tap and paste feature. Label is required to be displayed till there is no character in the textbox i.e. if the textbox gets the focus but nothing is written yet, in that case too label should be visible.

P.S. I am not using placeholder attribute of HTML5.

  • 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-06-08T22:52:56+00:00Added an answer on June 8, 2026 at 10:52 pm

    If I’ve understood you correctly, this is because the label is sitting on top of the text box, so you’re actually clicking on it, not the text box. You could try using CSS pointer events to stop the label reacting to clicks. Apparently they’re supported by Webkit, but I don’t know about the iPad specifically. Give this a go:

    .labelwrap label {
        pointer-events: none;
    }
    

    To make it disappear when the textbox is focussed, try this:

    .labelwrap input:focus {
        z-index: 1; /* Or something greater than that of the <label> */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a textbox.In its onclick iam calling a javascript fn to call calendar.Texbox
I have a textbox inside the anchor tag. And I want to get its
I have created a UserControl called AutorControl with a method to clear its textbox:
I have TextBox (multiline) and Label in an UpdatePanel which I refresh with javascript
I have a problem with a master page containing a asp:textbox that I'm trying
I have the following page: <div style=display: inline> <input type=button id=txt value=Add TextBox style=
I have an issue where I read the value from textbox and pass its
I need something like TextBox like Label for RadioButton content. I have made all
I have a very simple usercontrol, basically a textbox and a label, whose purpose
I have a label and a textBox on a form. The content of the

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.