I want to disable the keyboard popup from my Ipad so I do something like this, but it s not as my wish.
我有一个文字箱:
<h:inputText id="txtDate" value="#{myDateController.selected.DOB}"
I try to use "readonly" attribute but data can not save to the Database. I also use this: $("#frmEdit:txtDate").attr("disabled", true) --> but it s not ok
我在网上搜索并应用了我的代码,但同时也没有:ipad web application: 我如何阻止键板在 j克日期皮cker/上铺设。
$(function() {
//$("#frmEdit\:txtDate").attr("disabled", true)
$("#frmEdit\:txtDate").datetimepicker({
// showOn: "button"
showOn: "both",
buttonImage: "../images/calendar.png",
buttonImageOnly: true,
constrainInput: true,
showButtonPanel: true,
dateFormat: dd-M-yy ,
addSliderAccess: true,
sliderAccessArgs: { touchonly: false },
onClose: function(dateText, inst){
$(this).attr("disabled", false);
},
beforeShow: function(input, inst){
$(this).attr("disabled", false);
}
});
});
What s wrong with my code ? or any other solution to do ? Many Thanks