{"id":1464,"date":"2021-07-01T13:57:12","date_gmt":"2021-07-01T08:27:12","guid":{"rendered":"https:\/\/selfimagination.in\/tips\/?p=1464"},"modified":"2021-07-01T16:22:04","modified_gmt":"2021-07-01T10:52:04","slug":"wordpress-uncaught-typeerror-dollar-is-not-a-function","status":"publish","type":"post","link":"https:\/\/selfimagination.in\/tips\/wordpress-uncaught-typeerror-dollar-is-not-a-function\/","title":{"rendered":"WordPress Uncaught TypeError: $ is not a function"},"content":{"rendered":"\n<p>\u091c\u092c \u092d\u0940 \u0906\u092a \u0935\u0930\u094d\u0921\u092a\u094d\u0930\u0947\u0938 \u092a\u094b\u0938\u094d\u091f \u092e\u0947\u0902 \u0915\u094b\u0908 Custom HTML \u092e\u0947\u0902 jQuery \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930\u0924\u0947 \u0939\u0948\u0902 \u0924\u094b \u091c\u0939\u093e \u092a\u0930 \u092d\u0940 \u0906\u092a\u0928\u0947 $ \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u093f\u092f\u093e \u0939\u0948\u0902 \u0935\u0939 \u092a\u0930 $ is not a function \u0915\u093e Error Message show  \u0939\u094b\u0924\u093e \u0939\u0948\u0902,<\/p>\n\n\n\n<script>\nfunction MyFunction()\n{\nvar ls_str  = jQuery('#input_str').val();\njQuery('#output_str').val(ls_str);\n}\n<\/script>\n\n<input type=\"hidden\" id=\"input_str\">\n<input type=\"hidden\" id=\"output_str\">\n<br>\n<br>\n<input type=\"hidden\" onclick=\"MyFunction()\" value=\"My Button\">\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">var ls_str  = $('#input_str').val();<\/code><\/pre>\n\n\n\n<p>\u092f\u0926\u093f \u0906\u092a \u092f\u0939\u093e\u0901 \u092a\u0930 $ \u0915\u0947 \u0938\u094d\u0925\u093e\u0928 \u092a\u0930 jQuery \u0932\u093f\u0916\u0947 \u0907\u0938\u0938\u0947 \u092f\u0939 \u092a\u094d\u0930\u0949\u092c\u094d\u0932\u092e Solve \u0939\u094b \u091c\u093e\u090f\u0917\u0940\u0964 <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">var ls_find = jQuery('#input_str').val();<\/code><\/pre>\n\n\n\n<p> jQuery CDN Already WordPress \u092e\u0947\u0902 \u0910\u0921 \u0939\u094b\u0924\u0940 \u0939\u0948\u0902 \u0907\u0938\u0932\u093f\u090f \u0906\u092a\u0915\u094b \u0905\u0932\u0917 \u0938\u0947 \u0915\u094b\u0908 \u092d\u0940 CDN \u0915\u0940 \u091c\u0930\u0941\u0930\u0924 \u0928\u0939\u0940\u0902 \u0939\u094b\u0924\u0940\u0964 <\/p>\n\n\n\n<p>Solution is <strong>Replace $ Sign to jQuery<\/strong> Keyword.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"WordPress Uncaught TypeError: $ is not a function\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/1mPuu3l1u9s?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><a href=\"https:\/\/selfimagination.in\/tips\/quick-code-replacer-tool\/\">Quick Coding \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u0907\u0938 Tool \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930\u0947\u0964 <\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u091c\u092c \u092d\u0940 \u0906\u092a \u0935\u0930\u094d\u0921\u092a\u094d\u0930\u0947\u0938 \u092a\u094b\u0938\u094d\u091f \u092e\u0947\u0902 \u0915\u094b\u0908 Custom HTML \u092e\u0947\u0902 jQuery \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930\u0924\u0947 \u0939\u0948\u0902 \u0924\u094b \u091c\u0939\u093e \u092a\u0930 \u092d\u0940 \u0906\u092a\u0928\u0947 $ \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u093f\u092f\u093e \u0939\u0948\u0902 \u0935\u0939 \u092a\u0930 $ is not a function \u0915\u093e Error Message show \u0939\u094b\u0924\u093e \u0939\u0948\u0902, \u092f\u0926\u093f \u0906\u092a \u092f\u0939\u093e\u0901 \u092a\u0930 $ \u0915\u0947 \u0938\u094d\u0925\u093e\u0928 \u092a\u0930 jQuery \u0932\u093f\u0916\u0947 \u0907\u0938\u0938\u0947 \u092f\u0939 \u092a\u094d\u0930\u0949\u092c\u094d\u0932\u092e Solve \u0939\u094b \u091c\u093e\u090f\u0917\u0940\u0964 jQuery [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1472,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-1464","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-solution"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/selfimagination.in\/tips\/wp-content\/uploads\/2021\/07\/Uncaught-TypeError-dollar-is-not-a-function.jpg?fit=1200%2C628&ssl=1","_links":{"self":[{"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/posts\/1464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/comments?post=1464"}],"version-history":[{"count":14,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/posts\/1464\/revisions"}],"predecessor-version":[{"id":1488,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/posts\/1464\/revisions\/1488"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/media\/1472"}],"wp:attachment":[{"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/media?parent=1464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/categories?post=1464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/tags?post=1464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}