<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takamints</author_name>
  <author_url>https://blog.hatena.ne.jp/takamints/</author_url>
  <blog_title>銀の弾丸</blog_title>
  <blog_url>https://takamints.hatenablog.jp/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>Web</anon>
    <anon>jQuery</anon>
  </categories>
  <description>jQuery UI のselectmenu は、フォームがリセットされても表示が元に戻らないみたいですね。 以下のようにして解決。 $(&quot;input[type='reset']&quot;).button() .click(function() { window.setTimeout(function() { $(&quot;[name='sel']&quot;) .selectmenu('refresh'); }, 0); }); フォームのリセットボタンにclickイベントをbindするのですが、このイベント、フォームがリセットされる前に発生しますから、それでは全然意味が無い。 なので、window.setTimeou…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakamints.hatenablog.jp%2Fentry%2F2014%2F10%2F07%2F232452&quot; title=&quot;フォームのリセット時にjQuery UIのselectmenuの表示もちゃんと更新する - 銀の弾丸&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>2014-10-07 23:24:52</published>
  <title>フォームのリセット時にjQuery UIのselectmenuの表示もちゃんと更新する</title>
  <type>rich</type>
  <url>https://takamints.hatenablog.jp/entry/2014/10/07/232452</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
