Title: inputmode parameter Post by: msvabik on August 17, 2023, 04:52:01 AM Hello,
I would like to use the inputmode parameter in <input>. Code: <input id="data_input" name="data_input" class="easyui-textbox" style="width: 100%; height: 38px" inputmode="none"> However, this parameter is ignored and not used when generating pages in jeasyui.How to control the type of keyboard displayed on mobile devices? Thanks for the advice Michal Title: Re: inputmode parameter Post by: jarry on August 21, 2023, 12:39:54 AM Please call the 'textbox' method to get the inputing box and then set its 'inputmode' attribute.
Code: var input = $('#tt').textbox('textbox'); input.attr('inputmode','none'); Title: Re: inputmode parameter Post by: msvabik on August 21, 2023, 05:47:48 AM Thank you, that helped.
Although it works a bit strangely. I have the textbox disabled in the form when initializing. The attribute setting only works on an enabled textbox. With that said, in the first edit of the textbox, the virtual keyboard is activated and in subsequent edits the virtual keyboard is no longer displayed. But thanks for that too... |