Changing keyboard type for html textarea on iPad

喜欢而已 提交于 2019-12-01 15:57:26

问题


I'm writing a web application for iPad. I know it's possible to change the type of keyboard displayed when an html input field is selected using:

Text: <input type="text" />
Telephone: <input type="tel" /> 
URL: <input type="url" /> 
Email: <input type="email" /> 
Zip Code: <input type="text" pattern="[0-9]*" />

the problem is that I have to use textarea instead of input. Is it possible to obtain the same result?

If not : is there any way to change the keyboard label for the ENTER key. At the moment the default label is "Return" and I would like to have "Send" (since it's a chat app).

thanks a lot!


回答1:


If it is plain html/css/javascript. This is not possible




回答2:


if you use <input title="Search"> the "enter" key is replaced by a "search" button, I haven't been able to find a listing of all the different combinations, but I'm sure there is one to you liking.
Note: The input must be inside a form element for this to work.



来源:https://stackoverflow.com/questions/7270190/changing-keyboard-type-for-html-textarea-on-ipad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!