<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yachin29</author_name>
  <author_url>https://blog.hatena.ne.jp/yachin29/</author_url>
  <blog_title>WEBサイト制作の勉強</blog_title>
  <blog_url>https://yachin29.hatenablog.com/</blog_url>
  <categories>
    <anon>jQuery</anon>
  </categories>
  <description>今回は、パネル部分が展開されると他のパネル部分は閉じるようにしたいので、 「開いているパネル部分以外のパネル部分は閉じる」という命令が必要です。 $('ul').not($(this).next('ul')) という記述で、複数あるulの中で、「クリックされたthisのnextのul以外のul」という指定が出来るようになります。 &lt;div class=&quot;container&quot;&gt; &lt;h1&gt;アコーディオンパネル&lt;/h1&gt; &lt;h2 class=&quot;panel&quot;&gt;パネル1&lt;span class=&quot;plus-icon&quot;&gt;&lt;/span&gt;&lt;/h2&gt; &lt;ul class=&quot;list show&quot;&gt; &lt;li&gt;パネル1…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyachin29.hatenablog.com%2Fentry%2F2019%2F09%2F10%2F011830&quot; title=&quot;アコーディオンパネルの作成 - WEBサイト制作の勉強&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/y/yachin29/20190603/20190603123125.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-09-10 01:18:30</published>
  <title>アコーディオンパネルの作成</title>
  <type>rich</type>
  <url>https://yachin29.hatenablog.com/entry/2019/09/10/011830</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
