{"id":196,"date":"2011-04-12T16:37:24","date_gmt":"2011-04-12T07:37:24","guid":{"rendered":"http:\/\/www.santoshkori.com\/blog\/?p=196"},"modified":"2012-03-05T22:01:17","modified_gmt":"2012-03-05T13:01:17","slug":"using-jquery-and-mootools-together","status":"publish","type":"post","link":"https:\/\/www.santoshkori.com\/blog\/using-jquery-and-mootools-together\/","title":{"rendered":"Using jQuery and MooTools Together"},"content":{"rendered":"<pre><pre class=\"brush: php; title: ; notranslate\" title=\"\">&lt;p&gt;jQuery sets this paragraph's color to red but MooTools sets the border color.&lt;\/p&gt;\r\n\u00a0 &lt;script type=&quot;text\/javascript&quot; src=&quot;jquery-1.3.js&quot;&gt;&lt;\/script&gt;\r\n\u00a0 &lt;script type=&quot;text\/javascript&quot;&gt;\r\n\u00a0 \u00a0 \/\/no conflict jquery\r\n\u00a0 \u00a0 jQuery.noConflict();\r\n\u00a0 \u00a0 \/\/jquery stuff\r\n\u00a0 \u00a0 (function($) {\r\n\u00a0 \u00a0 \u00a0 $('p').css('color','#ff0000');\r\n\u00a0 \u00a0 })(jQuery);\r\n\u00a0 &lt;\/script&gt;\r\n\u00a0 &lt;script type=&quot;text\/javascript&quot; src=&quot;moo1.2.js&quot;&gt;&lt;\/script&gt;\r\n\u00a0 &lt;script type=&quot;text\/javascript&quot;&gt;\r\n\u00a0 \u00a0 \/\/moo stuff\r\n\u00a0 \u00a0 window.addEvent('domready',function() {\r\n\u00a0 \u00a0 \u00a0 $$('p').setStyle('border','1px solid #fc0');\r\n\u00a0 \u00a0 });\r\n\u00a0 &lt;\/script&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&lt;p&gt;jQuery sets this paragraph&#8217;s color to red but MooTools sets the border color.&lt;\/p&gt; \u00a0 &lt;script type=&quot;text\/javascript&quot; src=&quot;jquery-1.3.js&quot;&gt;&lt;\/script&gt; \u00a0 &lt;script type=&quot;text\/javascript&quot;&gt; \u00a0 \u00a0 \/\/no conflict jquery \u00a0 \u00a0 jQuery.noConflict(); \u00a0 \u00a0 \/\/jquery stuff \u00a0 \u00a0 (function($) { \u00a0 \u00a0 \u00a0 $(&#8216;p&#8217;).css(&#8216;color&#8217;,&#8217;#ff0000&#8242;); \u00a0 \u00a0 })(jQuery); \u00a0 &lt;\/script&gt; \u00a0 &lt;script type=&quot;text\/javascript&quot; src=&quot;moo1.2.js&quot;&gt;&lt;\/script&gt; \u00a0 &lt;script type=&quot;text\/javascript&quot;&gt; \u00a0 \u00a0 \/\/moo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,45,102,103,17,15,14],"tags":[],"class_list":["post-196","post","type-post","status-publish","format-standard","hentry","category-cross-browser-compatibility","category-joomla","category-jquery","category-moo-tools","category-tips-n-tricks","category-tools","category-web-development"],"_links":{"self":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/comments?post=196"}],"version-history":[{"count":6,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/196\/revisions"}],"predecessor-version":[{"id":444,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/196\/revisions\/444"}],"wp:attachment":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/media?parent=196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/categories?post=196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/tags?post=196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}