{"id":226,"date":"2023-02-23T06:35:41","date_gmt":"2023-02-22T22:35:41","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=226"},"modified":"2023-04-30T15:23:24","modified_gmt":"2023-04-30T07:23:24","slug":"jquery-simulate-form-submission","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/23\/jquery-simulate-form-submission\/","title":{"rendered":"jQuery\u6a21\u62dfform\u8868\u5355\u63d0\u4ea4"},"content":{"rendered":"<pre><code class=\"language-html\">&lt;form id=&quot;checkout_form_id&quot; action=&quot;http:\/\/www.appblog.cn\/checkout&quot; method=&quot;post&quot; target=&quot;_blank&quot;&gt;\n    &lt;input type=&quot;hidden&quot; id=&quot;token&quot; name=&quot;token&quot; &gt;\n    &lt;input type=&quot;hidden&quot; id=&quot;encrypt_data&quot; name=&quot;encrypt_data&quot; &gt;\n&lt;\/form&gt;<\/code><\/pre>\n<p><!-- more --><\/p>\n<pre><code class=\"language-javascript\">$(&quot;#button_id&quot;).click(function(){\n    $(&#039;#checkout_form_id&#039;).submit();\n    return false;\n});<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&lt;form id=&quot;checkout_form_id&quot; action=&quot;h [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[82],"class_list":["post-226","post","type-post","status-publish","format-standard","hentry","category-frontend-basic","tag-jquery"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=226"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/226\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}