Well, I researched a lot and got two solutions, the first time, you added to the
Jquery.js file that thinks of the
Done this, you will look at the
page.xml file and add an addJs method that points to the location where you are inserting
yourjquery.js file. (AddJS function, I will explain below)
Okay, coming out with no
page.xml you'll see a method calling addJS which is basically a native function of Magento that aims to search the Magento JS directory, the file you want to add. Pay close attention here, you are already prepared to search the JS folder of the Magento, so basically, you do not like pasta.
So let's for example, add a
<action method = "addJs"> <script> jquery / name-of-your-lib-jquery.js </ script> </ action>
Note that I did not type
js/jquery/... I just typed
jquery/... being so following what I said above, which is already set and is not accurate Be referenced in your directory information.
Follow your steps and you do not have your Magento and your Jquery library, and then just use it for free. To find out what is working, reload the Magento, activate the browser console and search, not HTML a head tag and see the jquery libraries there, if it is showing up there, it is ok.
IF YOU DID NOT GET USING THE FIRST (MOST RECOMMENDED) METHOD ... Remember it may be easier, but I advise you to use the first way ...
It's basically the first thing you think about when it comes to doing something like that.
Final remarks: Syntax Jquery Magento 1.9
It's not your .phtml file, when you use a function without your Jquery, it uses your library you just added, and you get the error. Try using this syntax style:
jQuery ('input [id = "billing: example"]'). mask ("(00) 00000-0000");