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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:15:09+00:00 2026-05-16T21:15:09+00:00

I have a html page with some links. When you click on a link,

  • 0

I have a html page with some links. When you click on a link, some jQuery code hides the div container, and shows another div. The originals links, in the first div, are no longer visible.

From the browser (webkit on android) point of view, everything works perfectly.

But if I touch the screen, the hidden links react as if they were visible. If I touch the screen, where the hidden links would be, I see an orange rectangle. The browser does nothing it is only showing the link as clicked.

How is it possible to synchronize touch screen and jquery hide/show functions?

My test is on webkit, android, and sony ericson xperia phone.

I’ve realised a test page with the phenomen. See it here or with this qr code:

alt text

When you touch the link, you go to a div without any links, but, on my phone, if I touch the first line I see an effect on the non visible link.

Here is the html :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Test for Stackoverflow</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="jquery-1.4.2.min.js"></script>
    <script type="text/javascript">
$(document).ready(function ()
{
  $("#with-link a").click(function()
  {
    $("#with-link").hide("slow");
    $("#after-touch").show("slow");
    return false;
  });
});

    </script>
  </head>
  <body>
    <div id="with-link">
      Oh... <a href="http://stackoverflow.com">It's a link !</a>
    </div>
    <div id="after-touch"style="display:none">
      But it's not go to stackoverflow :-)<br>
      To Touch Or Not To Touch that is the question.
    </div>
  </body>
</html>
  • 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-16T21:15:09+00:00Added an answer on May 16, 2026 at 9:15 pm

    I don’t have a smartphone to test this, but my take on this is that the link didn’t disappear completely: It’s just hidden.

    How many links do you have? if it’s just one you can simply remove it from existence (when you need to hide it)

    $('#mylink').remove();
    

    and then create it again

    $('#linkcontainer').append('<a href="#">damn link</a>');
    

    If you have more links, this is not a convenient method. You can then play with CSS, position the link to absolute, and send it to -4999px left. This will be your hide function 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple html page with a div. I am using jQuery to
I have a HTML page with which I want to do some client side
I have an HTML page (say welcome.html) which contains an iframe to a page
I have a HTML page that scrolls up and down (not a lot, but
We have an HTML page which displays a bunch of pretty bars using divs
Suppose I have one html page with frames. The left frame is simply a
Setup: I have an HTML page with a fieldset element. The background color of
I'd like to have an HTML page which displays a single PNG or JPEG
I have a generated HTML page with flash content in it. I am trying
I have a form on an HTML page with multiple submit buttons that perform

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.