Is there a way to replace all click event by vclick event in jQuery mobile?
The only solution I’ve found so far is to register a vclick event as below
$('a').bind("vclick", function (ev) {
// Do Some stuff
ev.preventDefault();
});
The problem is that this solution doesn’t prevent jQuery mobile click event to fire so clicks are triggered twice
For some reason, I got the following to work:
Without the e.preventDefault() the event fires twice. With it, it only fires once (but it does fire)
This is similar to what you stated, but may be more all encompassing.