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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:59:04+00:00 2026-06-17T08:59:04+00:00

I use jquery for my web application. I want it to be correct for

  • 0

I use jquery for my web application. I want it to be correct for desktop browsers and mobile brousers for touchscreen devices.

I have a div, and some elements inside it:

    <div class="well listItem element-div alert-error" data-state="removing">
     <strong>Item title</strong> <small>Items count</small>
     <div class="pull-right" style="margin-top: -5px;">
      <a class="btn btn-success approve-button"><i class="icon-ok icon-white"></i></a>
      <a class="btn btn-danger cancel-button"><i class="icon-remove icon-white"></i></a>
     </div>
</div>

I catch click and touchend event for .listItem class (top-level div) and same events for every a element (for .approve-button and .cancel-button), but when I’m click on desktop browser on ‘a’ element, it works correct, and when I am pressing on ‘a’ element in iOS Safari browser, or WindowsPhone InternetExplorer, works only event for parent div, but not for ‘a’. If I remove event listener for parent div, events for ‘a’ elements works correct in mobile browsers. I want parent-div event works when I touch a free space of it, and when I touch ‘a’ element – I want only ‘a’ event listener to go on. Can you advise me how to separate them?

  • 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-17T08:59:04+00:00Added an answer on June 17, 2026 at 8:59 am

    Have you tried to check event target?

    $(".listItem").on("click", function(event){
      if (event.target === this) {
        // clicked exactly on this element
      }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on an ASP.NET web application. I want to use Jquery ajax
I have started a new web application and have decided to use jquery as
I want to use jquery to automatically fill some details in a web site
I want to use AntiXss library function in my web application. I have a
I use jquery, php and html in my web application. I want to add
I’m using jquery accordion in a web application. And I want to use this
I am developing an ASP.NET web application, and now I want to use some
Edit: solved by linking the correct version of jquery I have a web application
i want to use jQuery and Spry both in my web-application. how it's possible.
In my web application, I use the .load() function in JQuery, to load some

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.