There is a function that, when focusing, or clicking on an input field, calls a function that calls its own modal window. Everything works well. But, if I, for example, call a modal window (when focusing, clicking) on the phone, then the keyboard for typing text flies to me, and behind it is that modal window .. which was called when clicking on the input field.
The question is, is it possible to block the keyboard call somehow? Whatever the focus, or click, it was not called (if we call a function to display a modal window)
function Checksel() { if ($("#select_category").val() === "") { $('#myModal').modal(); } } $(".formpost").on("focusin", "input[type='text'],textarea", function() { Checksel(); });
function Checksel() { if ($("#select_category").val() === "") { $('#myModal').modal(); } } $(".formpost").on("focusin", "input[type='text'],textarea", function() { Checksel(); });
That is, I work with the form of the function, without touching or modifying the fields themselves in the form. Perhaps what I want to do from this code add the necessary functions? - user199432