{"id":10916265,"date":"2018-11-26T07:53:18","date_gmt":"2018-11-26T07:53:18","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/how-can-i-hide-the-jquery-code-with-fieldname-data-in-html-code\/"},"modified":"2018-11-26T07:53:18","modified_gmt":"2018-11-26T07:53:18","slug":"how-can-i-hide-the-jquery-code-with-fieldname-data-in-html-code","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/how-can-i-hide-the-jquery-code-with-fieldname-data-in-html-code\/","title":{"rendered":"How can i hide the jquery code with fieldname data in HTML code ?"},"content":{"rendered":"<p>How can i hide the jquery with fieldname data in HTML code ?<\/p>\n<p>It shows the original code in HTML code When i copy below Jquery codes to Field Type: HTML content .<\/p>\n<pre><code>&lt;script&gt;\nfunction silentSubmission(e)\n{\n$(&quot;.submit&quot;).click(function(){\n$(&quot;.display-message-here&quot;).append(&quot;&lt;table&gt;&lt;tr align=&#039;center&#039;&gt;&lt;td&gt;&quot;+jQuery(&#039;[id*=&quot;fieldname26_&quot;]&#039;).val()+&quot;&lt;\/td&gt;&lt;\/tr&gt;&lt;\/table&gt;&quot;);\n});\n}\n&lt;\/script&gt;<\/code><\/pre>\n<p>Here is the screenshot : <a href=\"https:\/\/s1.ax1x.com\/2018\/11\/26\/FANr5V.png\">demo screenshot<\/a><\/p>\n","protected":false},"template":"","class_list":["post-10916265","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10916265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10916265\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10916265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}