Ipad + How to prevent the keyboard from popping up on jquery datepicker

后端 未结 4 1698
悲&欢浪女
悲&欢浪女 2021-01-02 01:19

I want to disable the keyboard popup from my Ipad so I do something like this, but it\'s not as my wish.

I have a text box:



        
4条回答
  •  悲哀的现实
    2021-01-02 01:55

    That's how I managed to deal with this problem by making the browser think the user blured the input so it hides the keyboard before it has time to show :

    $('blabla')
        .datepicker(
        {
            /* options */
        })
        .on('focus',function()
        {
            $(this).trigger('blur');
        });
    

    Works well for me where many of the other solutions I found didn't !

提交回复
热议问题