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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:55:19+00:00 2026-06-02T12:55:19+00:00

If a textarea or input (type text) element has focus in a HTML page

  • 0

If a textarea or input (type text) element has focus in a HTML page running in an iPhone has focus, then the iPhone keyboard will display.

However, I have an Image ( tag), and I would like to be able to display the iPhone keyboard when this element has focus, and capture keypress events.

I have read that the CSS style -webkit-user-modify: read-write; is supposed to do this, but it does not appear to be working in the iOS simulator.

I’m using JQuery Mobile, without any native Cocoa/Objective C code.

Thanks in advance for your help.

  • 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-02T12:55:22+00:00Added an answer on June 2, 2026 at 12:55 pm

    Send focus to a hidden text field (position: relative; left:-10000px; for the CSS style) when the image is clicked, and when that text field loses focus, the value of that text field is the text the user entered.

    $("#myImg").click(function() {
        $("#inputOutsideOfPageAndUnviewable").blur(function() {
             var myImageTag = $("#inputOutsideOfPageAndUnviewable").val();
        });
        $("#inputOutsideOfPageAndUnviewable").focus();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When my extension gets access to an INPUT (type text ) or TEXTAREA element
$(':input[type=text], textarea').change(function(){ if(($(:input[type=text]).val()!=) && $(textarea).val()!=){ $(:submit).removeAttr(disabled); $(:submit).removeClass(disabled); $(:submit).addClass(success); } }); This function is triggered
Here's the simplest example: <textarea id=text_area name=text_area style=width:280px> </textarea> <input id=text_field name=text_field style=width:280px type=text
<table cellspacing=0 cellpadding=0> <textarea rows=5 cols=60 name=question></textarea> <tr> <td><input type=text readonly=1 value=127.0.0.1 /></td> <td><input
I've two input fields, both type textareas. <input id=display type=text disabled=disabled style=border: none; background:
In order to disable a textarea (or any other input element), you can: In
I have a page where the input type always varies, and I need to
I have a template like script type: text/template, id: list-template, ''' <div class=display> <div
It works when I remove the disabled attribute on an input type text field
I have an input form with two textareas allowing a user to type in

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.