Magento Themes and Magento Extensions

Magento – using jQuery

Posted on February 2nd, 2015 | Posted by admin

While developing the new website in magento I found, magento using prototype as a default javascript library. My problem was I had to learn and my biggest problem was time crunch. I decided to add Jquery in in which i was good. so i decided using Magento using jQuery combination. I started the integration later on I came to know that oh there is problem because of conflict in js file. It was little difficult to understand why but I came to know after lot of search over the web. so lets learn it using quick and easy steps on how to use jQuery in magento. I have just consolidated information I found while researching.

How to use jQuery in magento?

Quick and easy steps on how to use jQuery in magento are as follows.

Step 1: Download “jQuery js” file and upload it to the magento “js” folder.
Step 2: Now open the file “page.xml” at Magento/app/design/frontend/default/default/layout/page.xml.
Step 3: Now add following line inside block “html_head” before end tag.

Page 3 of 3«123