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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:04:45+00:00 2026-05-29T04:04:45+00:00

I have this: $(‘li.clickable’).live(‘click tap’, function() { console.log(hello); )}; If I listen like this

  • 0

I have this:

$('li.clickable').live('click tap', function() {
   console.log("hello");
   )};

If I listen like this and click on the list item, two events are firing = I’m getting two “hellos”. I need to fire a function with every “click tap”, but only once!

Is there any way to do this. I cannot use “one” because then the function will go silent after the first click, isn’t it?

Thanks for pointer!

EDIT:
if I omit either click or tap, the function still fires twice. Any way to prevent this?

  • 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-29T04:04:46+00:00Added an answer on May 29, 2026 at 4:04 am

    jQM Docs:

    • http://jquerymobile.com/demos/1.0.1/docs/api/events.html

    Virtual mouse events
    We provide a set of “virtual” mouse events that attempt to abstract away mouse and touch events. This
    allows the developer to register listeners for the basic mouse events,
    such as mousedown, mousemove, mouseup, and click, and the plugin will
    take care of registering the correct listeners behind the scenes to
    invoke the listener at the fastest possible time for that device. In
    touch environments, the plugin retains the order of event firing that
    is seen in traditional mouse environments, so for example, vmouseup is
    always dispatched before vmousedown, and vmousedown before vclick,
    etc. The virtual mouse events also normalize how coordinate
    information is extracted from the event, so in touch based
    environments, coordinates are available from the pageX, pageY,
    screenX, screenY, clientX, and clientY properties, directly on the
    event object.

    vclick

    Normalized event for handling touchend or mouse click events. On touch devices, this event is dispatched AFTER vmouseup.

    Try using:

    $('li.clickable').live('vclick', function() {
       console.log("hello");
    )};
    

    Also you can test which event is firing

    $('li.clickable').live('click tap', function(e) {
        console.log("Which Event: "+e.which + " Event Type: "+e.type);
    )};
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this interesting jQuery function. It basically adds a click handler to link,
I have this class class Validator implements iValidation{ protected $_fields, $_errors; public function __construct($fields){
i have this: http://jsfiddle.net/uAQ8B/5/ This list should have all the objects on the left
i have this function that brings me back a value by query a table
Have this upload script, and it works. But I would like to add a
I have this list: <ul class=pagination> <li class=dl-nav-1 current><a href=#>Spring Training 2001</a><span class=visible><img src=img/indicator.png
I have this function: public static string Join(this IEnumerable<string> strings, string separator) { return
I have this problem, in a form I have a list of customers that
I have this javascript method: <script type=text/javascript> function MyFunction(sender, eventArgs) { if (someCondition) {
I have this javascript code: $(document).ready(function() { var leftHeight = $('#maincontent').height(); $('#sidemenu').css({'height':leftHeight}); }); This

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.