<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aipacommander</author_name>
  <author_url>https://blog.hatena.ne.jp/aipacommander/</author_url>
  <blog_title>ITの隊長のブログ</blog_title>
  <blog_url>https://aipacommander.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>jQuery</anon>
  </categories>
  <description>selectのoptionにdata-urlとか属性をもたせた時、selectされたoptionの属性を引っ張ってきたい。 普通に思いつくのはこれ $(selector.selectbox).val(); // select boxのoptionのvalueが取得できる。 でも他の属性は・・・？ 思いついたのはこれ。 $(selector.selectbox).data('url'); // これだとselect タグの`data-url`属性を取得しようとする あれー？じゃあどうすれば。 こうすればイケル var url = $(selector.selectbox + ' option:s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faipacommander.com%2Fentry%2F2016%2F04%2F20%2F225332&quot; title=&quot;【jQuery】selectされたoptionの属性にアクセスしたい - ITの隊長のブログ&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://cdn.mogile.archive.st-hatena.com/v1/image/aipacommander/297789129598967254.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-04-20 22:53:32</published>
  <title>【jQuery】selectされたoptionの属性にアクセスしたい</title>
  <type>rich</type>
  <url>https://aipacommander.com/entry/2016/04/20/225332</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
