Changing keyboard type for html textarea on iPad

2019-02-21 19:06发布

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!

2条回答
Rolldiameter
2楼-- · 2019-02-21 19:45

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

查看更多
我只想做你的唯一
3楼-- · 2019-02-21 20:02

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.

查看更多
登录 后发表回答