<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tyki</author_name>
  <author_url>https://blog.hatena.ne.jp/tyki/</author_url>
  <blog_title>Code::Craft</blog_title>
  <blog_url>https://tyki.hatenadiary.org/</blog_url>
  <categories>
    <anon>js</anon>
  </categories>
  <description>selectタグで配置されるプルダウンメニュー、ないしリストボックスといったものの呼び方がどうも統一されてない＆selectという単語が一般的なせいで、何かと検索で調べにくいのにはいつも困る。さておき、id=&quot;target&quot;なるselect要素の末尾にオプションを追加したいといった場合。jQueryの$()関数はprototype.jsとは違ってHTML要素ないしDOM要素ではなくjQueryオブジェクトを返すため、 var elm = $(&quot;#target&quot;); elm.length = elm.length + 1; elm.options[elm.length - 1].text = &quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftyki.hatenadiary.org%2Fentry%2F20070710%2F1184058073&quot; title=&quot;jQueryでselect要素のoption操作 - Code::Craft&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>2007-07-10 18:01:13</published>
  <title>jQueryでselect要素のoption操作</title>
  <type>rich</type>
  <url>https://tyki.hatenadiary.org/entry/20070710/1184058073</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
