开发者

Changing keyboard type for html textarea on iPad

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 k开发者_如何学Goey. At the moment the default label is "Return" and I would like to have "Send" (since it's a chat app).

thanks a lot!


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜