<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xoyip</author_name>
  <author_url>https://blog.hatena.ne.jp/xoyip/</author_url>
  <blog_title>ぴよログ</blog_title>
  <blog_url>https://xoyip.hatenablog.com/</blog_url>
  <categories>
    <anon>bootstrap</anon>
    <anon>jQuery</anon>
    <anon>Javascript</anon>
  </categories>
  <description>Bootstrapについてくるjavascriptのcollapseを使うとアコーディオン風のUIが簡単に作れるから便利。 JavaScript · Bootstrap で、隠れていたものが表示されたときに何かしたいってときのためにshown.bs.collapseっていうイベントが用意されているんだけど、このイベント、ajaxとかで追加した要素ではちゃんと呼ばれない。 っていうかこれは別にこのイベントに限った話じゃなくて、javascriptのイベント全般の話なんだけどよく忘れるのでメモ的に残しておく。今回気がつきにくかったのはBootstrapだから違うかもと思ってしまったのが原因かも…？…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxoyip.hatenablog.com%2Fentry%2F2014%2F08%2F29%2F200000&quot; title=&quot;追加要素にshown.bs.collapseが効かない - ぴよログ&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>http://hatenablog.com/images/theme/og-image-1500.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-08-29 20:00:00</published>
  <title>追加要素にshown.bs.collapseが効かない</title>
  <type>rich</type>
  <url>https://xoyip.hatenablog.com/entry/2014/08/29/200000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
