Prevent Phone Number recognition on JqueryMobile

断了今生、忘了曾经 提交于 2019-12-06 14:19:13

You could try

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

This will tell safari to not detect phone numbers.

More info on http://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Reference/Articles/PhoneLinks.html

You can do this in two seperate ways.

HTML disabling

<p datadetectors="off">Header text with number 9123 3456</p> 
<p>Body text with number 9872 4567</p>

Or globally on your uiwebview

webview.dataDetectorTypes=0;

what is the input element type set to? make sure it's set to date.

Example:

<label for="date">Date Input:</label>
<input type="date" name="date" id="date" value=""  />

Docs:

What I did was something like this. Made the date as a href with no link.

<a href="#" class="unlink">2012-08-23/a>

Then applied CSS to modify the link to looks like texts.

.unlink {
    text-decoration: none;
    color: #333;
    cursor: text;
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!