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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:22:46+00:00 2026-06-14T19:22:46+00:00

I have came across an issue with my application when using the iPad. For

  • 0

I have came across an issue with my application when using the iPad.

For a specific form I use jQuery to bind events to form elements, I have a “tool tip” that shows when you mouse over the form field or focus is put on it, this works fine on the desktop. However, on the iPad (and other touch devices no doubt) the first click/tap/touch into the field is detected as mouseenter, so all this does is just show the tool tip.

However, I would like this to allow data entry into the field on first touch, rather than the second as it is doing just now. So in other words, i’d like it to behave the same on the iPad as it does on the desktop namely, show the tool tip and allow data input.

Do I have to detect the device and spoof a mouseenter as a click or something similar?

// Attach focus and blur events to form elements
bindFocusAndBlurOnFormElements($('INPUT:text, INPUT:password, TEXTAREA, SELECT'), false);

function bindFocusAndBlurOnFormElements(elems) {
   elems.each(function(){
      if ($(this).next().hasClass('tool_tip')) {
         $(this).bind('mouseenter mouseleave focus blur', function(e){
            alert(e.type); 
            if (e.type=='mouseenter' || e.type=='focus') {
                // show the tool tip      
            } else {
               // hide the tool tip
            }
         });
       }    
   }
}
  • 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-14T19:22:47+00:00Added an answer on June 14, 2026 at 7:22 pm

    Have read somewhere:

    One other way could be using CSS media queries and using some styles only for smaller screens / mobile devices, which are the ones most likely to have touch / tap functionality. So if you you have some specific styles via CSS, and from jQuery you check those elements for the mobile device style properties you could hook into them to write you mobile specific code.

    More Info: http://www.forabeautifulweb.com/blog/about/hardboiled_css3_media_queries/

    Another source:

    Modernizr is a great, lightweight way to do all kinds of feature detection on any site.

    It simply adds classes to the html element for each feature.

    You can then target those features easily in CSS and JS. For example:

    html.touch div {
        width: 480px;
    }
    
    html.no-touch div {
        width: auto;
    }
    

    And Javascript (jQuery example):

    $('html.touch #popup').hide();
    

    Sources:

    1. Detecting touch screen devices with Javascript
    2. Javascript function in HTML tag generated by javascript
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a tabbed application, and i came across an issue. I have a
While debugging a WCF service I came across this issue. I use an HttpURLConnection
I recently came across an encoding issue specific to how Firefox encodes URLs directly
I experimenting with Flex Styling, and I came across an alignment issue. I have
I have came across strange issue with Windows Command Prompt and MySQL. Somehow command
I came across a weird issue when using JVM garbage collection log option with
Recently we came across an issue to support side by side installation. We have
I have came across an issue where i am unable to find a solution.I
I have been designing a program using Visual C# and have came across an
I have came across the following code, and being a C beginner, I came

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.