{"id":4772892,"date":"2014-04-03T20:08:06","date_gmt":"2014-04-03T20:08:06","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/jquery-20\/"},"modified":"2016-08-21T18:59:03","modified_gmt":"2016-08-21T18:59:03","slug":"jquery-20","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/jquery-20\/","title":{"rendered":"jquery"},"content":{"rendered":"<p>Hi,<\/p>\n<p>Default installation gives an error on WP 3.8.1 :<\/p>\n<p><code>TypeError: $ is not a function @ wpcharts.js:50<\/code><\/p>\n<p>This is caused by jQuery running in noconflict mode. See <a href=\"https:\/\/codex.wordpress.org\/Function_Reference\/wp_enqueue_script\"> this  <\/a> link for more information.<\/p>\n<p>In order to fix this: edit <code>wpcharts.js<\/code> and replace the $ with jQuery so that it becomes:<\/p>\n<pre><code>jQuery(&#039;#chart&#039;+id).empty();\njQuery(&#039;#chart&#039;+id).html(svg);<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-4772892","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4772892","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\/4772892\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4772892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}