<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>AJYA</author_name>
  <author_url>https://blog.hatena.ne.jp/AJYA/</author_url>
  <blog_title>ソフトウェア開発者の日常</blog_title>
  <blog_url>https://ajya.hatenablog.jp/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>JavaScript</anon>
  </categories>
  <description>複数から1つだけ選べる択一選択にするなら、ラジオボタンにすべきです。 選択した後で、選択しないということもあるため、チェックボックスになっています。チェックボックスで択一選択にする方法JavaScriptで、チェックされるたびに、同一クラスを割り当てたチェックボックスのチェックを外しています。 外す際に、チェックされたチェックボックスのidを除外の条件としています。 $(&quot;input[type='checkbox']&quot;).bind(&quot;change&quot;, function (e) { if (this.checked) { var index = $(this).attr(&quot;class&quot;); $(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fajya.hatenablog.jp%2Fentry%2F2015%2F01%2F08%2F060232&quot; title=&quot;JavaScript：同一クラスを割り当てたチェックボックスを択一選択にするJavaScriptが正常に動かなくなっていて焦りました - ソフトウェア開発者の日常&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-01-08 06:02:32</published>
  <title>JavaScript：同一クラスを割り当てたチェックボックスを択一選択にするJavaScriptが正常に動かなくなっていて焦りました</title>
  <type>rich</type>
  <url>https://ajya.hatenablog.jp/entry/2015/01/08/060232</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
