Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>My answer is based on ios because that is all I have available, but might be the same for android.</strong></p> <p>Click events work a little differently on touch enabled devices. There is no mouse, so technically there is no click. According to this article - <a href="http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html" rel="nofollow">http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html</a> - due to memory limitations, click events are only emulated and dispatched from anchor and input elements. Any other element could use touch events, or have click events manually initialized by adding a handler to the raw html element, for example, to force click events on divs:</p> <pre><code>$('div').each(function(){ this.onclick = function() {} }); </code></pre> <p>Now click will be triggered by divs, therefore can be listened by jQuery.</p> <hr> <p>On your case, you could just change the listener to the anchor element:</p> <pre><code>$("#link1 a").click(function() { alert("#link1 clicked..."); }); </code></pre> <p>Or use a touch event on the div:</p> <pre><code>$(document).on('touchstart', '#link1', function() { alert("on click activated for link1"); }); </code></pre> <p>then trigger like this:</p> <pre><code>$('#slider').contents().find("#link1").trigger('touchstart'); </code></pre> <p>Here is a fiddle with a few experiments, might be helpful - <a href="http://jsbin.com/ukalah/9/edit" rel="nofollow">http://jsbin.com/ukalah/9/edit</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload