<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>posturan</author_name>
  <author_url>https://blog.hatena.ne.jp/posturan/</author_url>
  <blog_title>Oboe吹きプログラマの黙示録</blog_title>
  <blog_url>https://oboe2uran.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>１年程前、全角数字入力を強制的に半角数字入力にしてバリデーションチェック処理を 軽減させるに、こんなものをここに投稿していた。 これは、input の type=&quot;text&quot; に対して有効な手段であり、 ＨＴＭＬ５の type=&quot;number&quot; では想定どおりにならない。 type=&quot;number&quot; では、入力値の change イベントが捕捉できないのである。 type=&quot;text&quot; ならば、 以下のチェックは成立する。 $('input[type=&quot;text&quot;]').change(function(){ var txt = $(this).val(); var han = txt.repl…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foboe2uran.hatenablog.com%2Fentry%2F2015%2F02%2F19%2F230546&quot; title=&quot;type=number の入力チェック - Oboe吹きプログラマの黙示録&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-02-19 23:05:46</published>
  <title>type=number の入力チェック</title>
  <type>rich</type>
  <url>https://oboe2uran.hatenablog.com/entry/2015/02/19/230546</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
