<?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://www.aipacommander.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>jQuery</anon>
  </categories>
  <description>知らんかったというか、これまでずっと下記コードを書いてた。 $('#button').on({ click: function(e) { e.preventDefault(); // 一旦クリックされたイベントをキャンセル $(form).removeAttr('onsubmit').submit(); // 消した後に指定のformをsubmitする } }); これでも一応できる。 が、例えば、submitするボタンが複数増えて、さらに押されたボタンを判断して色々処理させたい場合、これでは押されたボタンのnameとvalueが飛んでくれない。 押されたボタンがキャンセルされ、$('form…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.aipacommander.com%2Fentry%2F2016%2F06%2F25%2F124721&quot; title=&quot;&amp;lt;form&amp;gt;でonsubmit=&amp;quot;return false;&amp;quot;した時の発火させるevent内では、$(&amp;#39;form&amp;#39;).removeAttr(&amp;#39;onsubmit&amp;#39;)だけで良い - 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-06-25 12:47:21</published>
  <title>&lt;form&gt;でonsubmit=&quot;return false;&quot;した時の発火させるevent内では、$('form').removeAttr('onsubmit')だけで良い</title>
  <type>rich</type>
  <url>https://www.aipacommander.com/entry/2016/06/25/124721</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
