Diogo Cardoso
Diogo Cardoso

Reputation: 22257

Disable telephone anchor

I'm developing a web application using PhoneGap that will be distributed to several mobile OS including iOS.

When I generate the application to iOS the numeric values with at least 7 digits are modified to telephone anchors, in order to "fix" this I've attached the following event handler:

$( 'a[href^="tel"]' ).live( 'click', function() {
    return false;
});

This code works fine except when I use jQuery Mobile, any idea why?

Upvotes: 4

Views: 1767

Answers (2)

MFAL
MFAL

Reputation: 1110

it actually works well for me on PhoneGap as well.

Upvotes: 0

Gabriel Santos
Gabriel Santos

Reputation: 4974

Try to add this to your header

<meta name="format-detection" content="telephone=no">

See How to disable phone number linking in Mobile Safari?

Upvotes: 6

Related Questions