0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

HTML input要素でメールアドレス(@を含む文字列)のみ入力可能にする

Posted at

目的

  • HTMLのinput要素にて@が含まれるメールアドレス文字列のみ入力可能にする方法をまとめる

書き方の例

  • 下記にメールアドレスの入力を行うinput要素の書き方を記載する。
<input type="email">

記載した時のHTMLでの表示例

  • type="email"を指定したinputの入力箇所に@を含まない文字列を入力した際のポップアップを下記に記載する。

スクリーンショット 2020-01-30 16.18.18.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?