Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
電話番号を入力するための以下のリンクのような入力フィールドの作成方法。
http://phoenix-tape.com/?p=7
数字を入力するときは、この下線を消す必要があります。
誰でも私を助けることができますか?
ユーザーが入力ボックスをクリックしてフィールドをクリアしたときに呼び出される関数を使用できます。例:
<script> clear(){ document.querySelector('input#tel').value=""; } </script> <input id="tel" on click="clear();"/>
楽しみ!
このjqueryプラグインはあなたのためのソリューションです
http://digitalbush.com/projects/masked-input-plugin/