{"id":4240,"date":"2022-07-15T11:38:18","date_gmt":"2022-07-15T10:38:18","guid":{"rendered":"https:\/\/ibex.tech\/javascript\/?p=4240"},"modified":"2022-07-15T11:41:27","modified_gmt":"2022-07-15T10:41:27","slug":"vs-jquery","status":"publish","type":"post","link":"https:\/\/ibex.tech\/javascript\/javascript-general\/vs-jquery","title":{"rendered":"$. vs jQuery."},"content":{"rendered":"\n<p>Straight javascript uses $<\/p>\n\n\n\n<p>For platforms such as WordPress you need to change the $ to be jQuery instead<\/p>\n\n\n\n<p>e.g.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$.each(MyArray, function(propName, propVal)\n{\n  console.log(propName, propVal);\n});\n\njQuery.each(MyArray, function(propName, propVal)\n{\n  console.log(propName, propVal);\n});<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Straight javascript uses $ For platforms such as WordPress you need to change the $ to be jQuery instead e.g.<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61],"tags":[],"class_list":["post-4240","post","type-post","status-publish","format-standard","hentry","category-javascript-general"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts\/4240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/comments?post=4240"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts\/4240\/revisions"}],"predecessor-version":[{"id":4245,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts\/4240\/revisions\/4245"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/media?parent=4240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/categories?post=4240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/tags?post=4240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}