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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:50:40+00:00 2026-05-24T07:50:40+00:00

Imagine there are 5 sublinks (having class searchBySub ) and 5 corresponding buttons on

  • 0

Imagine there are 5 sublinks (having class searchBySub) and 5 corresponding buttons on a page..

Now these 5 sublinks have following clas definitions

#leftNav .searchBySub {...}
#leftNav  a.searchBySub:hover {...}
#leftNav  a.searchBySubClick {...}

Now I am testing this page on the iPad.
Any of the 5 sublinks can be clicked which changes it CSS (offcourse shows the clicked link as selected color)

Also if I click on any of the corresponding button, it should show me the corresponding link with selected color…I am doing this via a click event on this button click;

$(".button1").live("click",function(){
            $("link1").click(); //This is not exact code (but written dynamically...anyways it simulates the first link click)
        });

Just one more thing, I am unable to show the exact code as the content gets refreshed via an AJAX call on each link/button click, which is why I have used the jQuery.live() for the bindings…

Now my issue is , on the iPAD, when I simulate the click via the button click, on let’s say Button2, while link1 is selected currently, it will correctly show link2 as selected color….
But for some reasons, it is showing link1 with hover state during this simulated click…I have no idea whatsoever why this is happening..

Please help me. Thank you.

  • 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-24T07:50:40+00:00Added an answer on May 24, 2026 at 7:50 am

    You may want to capture and take action on the touchstart event. For mobile devices without mice, you get a series of events when someone taps on the screen:

    • touchstart
    • touchend
    • mousedown
    • mouseup
    • click

    The mouse* events don’t happen until after touchend, which may not be the behavior you want. Check out Apple’s mobile Safari event docs for more info:

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

Sidebar

Related Questions

I imagine there are many of you out there who have developed an application
There is one thing that I do not understand... Imagine you have a text
I have what I imagine to be a pretty standard web-interface. There are 4
excuse me for my ugly english) ! Imagine these very simple models : class
Imagine I have these python lists: keys = ['name', 'age'] values = ['Monty', 42,
Imagine there is a jar (named lib.jar ) that contains a single class and
Imagine you have those 3 tables: And imagine there is massive data according to
Imagine there is a Customer class with an instance Load() method. When the Load()
On C# 3.0 and .NET 3.5, imagine there's an interface: public interface INameable {
If there were such a thing I would imagine the syntax to be something

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.