HTML Mobile -forcing the soft keyboard to hide

前端 未结 8 2079
时光说笑
时光说笑 2020-11-27 03:40

I am developing the front end site for a coupon company, and I have a page where the user only needs to input phone number and $$ spent. We came up with a fun on-screen keyb

8条回答
  •  心在旅途
    2020-11-27 04:22

    Scott S's answer worked perfectly.

    I was coding a web-based phone dialpad for mobile, and every time the user would press a number on the keypad (composed of td span elements in a table), the softkeyboard would pop up. I also wanted the user to not be able to tap into the input box of the number being dialed. This actually solved both problems in 1 shot. The following was used:

    
    

提交回复
热议问题