[英]Stop Ipad keyboard pop-up
I am working on a PHP application and it will work on Ipad,PC,Iphone,android phones etc. I am using jquery datepicker at one place. 我正在使用PHP应用程序,它将在Ipad,PC,Iphone,Android手机等上运行。我在一个地方使用jquery datepicker。 Now while working on ipad whenever im tapping on date field,immediately Ipad keyboard comes.
现在,当我在ipad上工作时,只要我点击日期字段,就立即出现ipad键盘。 And as per My requirement there is no need for keyboard.
并且根据我的要求,不需要键盘。 I tried the solution given here
我尝试了这里给出的解决方案
But it didn't worked because i am using a different date-picker.So please suggest a fast method if you knows 但这没有用,因为我使用的是其他日期选择器。所以如果您知道的话,请提出一种快速的方法
尝试将readonly="true"
属性添加到该字段以停止iPad键盘弹出窗口。
you can disable it.like this 你可以禁用它
$(".datePicker").datepicker({
showOn: 'button',
onClose: function(dateText, inst)
{
$(this).attr("disabled", false);
},
beforeShow: function(input, inst)
{
$(this).attr("disabled", true); //set disable to true
}
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.