{"id":213,"date":"2023-02-23T06:21:55","date_gmt":"2023-02-22T22:21:55","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=213"},"modified":"2023-04-30T15:27:39","modified_gmt":"2023-04-30T07:27:39","slug":"jquery-forms-value-taking-and-assignment","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/23\/jquery-forms-value-taking-and-assignment\/","title":{"rendered":"jQuery\u8868\u5355\u7684\u53d6\u503c\u4e0e\u8d4b\u503c"},"content":{"rendered":"<h2>textarea\u53d6\u503c\u4e0e\u8d4b\u503c<\/h2>\n<p>\u53d6\u503c<\/p>\n<pre><code class=\"language-javascript\">var content = $(&quot;#textarea_id&quot;).val();<\/code><\/pre>\n<p><!-- more --><\/p>\n<p>\u8d4b\u503c<\/p>\n<pre><code class=\"language-javascript\">$(&quot;#textarea_id&quot;).val(content);<\/code><\/pre>\n<h2>label\u53d6\u503c\u4e0e\u8d4b\u503c<\/h2>\n<p>\u53d6\u503c<\/p>\n<pre><code class=\"language-javascript\">var content = $(&quot;#label_id&quot;).text();<\/code><\/pre>\n<p>\u8d4b\u503c<\/p>\n<pre><code class=\"language-javascript\">$(&quot;#label_id&quot;).text(content);<\/code><\/pre>\n<h2>input\u53d6\u503c\u4e0e\u8d4b\u503c<\/h2>\n<p>\u53d6\u503c<\/p>\n<pre><code class=\"language-javascript\">var content = $(&quot;#input_id&quot;).val();<\/code><\/pre>\n<p>\u8d4b\u503c<\/p>\n<pre><code class=\"language-javascript\">$(&quot;#input_id&quot;).val(content);<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>textarea\u53d6\u503c\u4e0e\u8d4b\u503c \u53d6\u503c var content = $(&quot;#textarea_id&#038;quo [&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-213","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\/213","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=213"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/213\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}