<?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>JavaScript</anon>
  </categories>
  <description>ラジオボタンAの選択によって、別のラジオボタンBの有効／無効状態を切り替えている場合に、JavaScriptでラジオボタンBがチェックされているかチェックをすると、ラジオボタンBが無効状態でもチェックはできてしまいます。そのため、ラジオボタンAの選択を確認して、ラジオボタンBが有効になる選択をしていたら、ラジオボタンBのチェックをするようにしています。 if ($(&quot;input[name=radioa]:checked&quot;).val() == &quot;1&quot;) { if (!$(&quot;input[name=radiob]&quot;).checked()) { alert(&quot;Error&quot;); } } photo cr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fajya.hatenablog.jp%2Fentry%2F2017%2F05%2F11%2F233000&quot; title=&quot;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>https://cdn-ak.f.st-hatena.com/images/fotolife/A/AJYA/20170511/20170511125933.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-05-11 23:30:00</published>
  <title>JavaScript:要素が有効な場合のみ、チェックされているか判定する方法</title>
  <type>rich</type>
  <url>https://ajya.hatenablog.jp/entry/2017/05/11/233000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
