I have a custom javascript and jQuery code.
I am new to magento and need to know how to add those jquery and JS snippet into my magento so that it identifies those.
Im trying to show tooltip on page load and hide after sometime using the below JS fiddle link:
The fiddle uses the following files:
1) jquery 2) bootstrap.js 3) bootstrap.css
Accordingly i have updated my magento files as:
In app\design\frontend\rau\default\template\page\html\pager.phtml
<?php if($followupbuttonshow){?>
<div class="thiscategory">
<a class="followlink" href="javascript:void" rel="tooltip" data-original-title="Place your stuff here"> <?php echo $this->__('Follow'); ?></a>
</div>
<?php } ?>
UPDATED:
In app\design\frontend\rau\default\layout\local.xml
<reference name="head">
<action method="addJs"><js>jquery/jquery.js</js></action>
<action method="addJs"><js>jquery/jquery.noconflict.js</js></action>
<action method="addLinkRel"><rel>text/javascript</rel><href>https://netdna.bootstrapcdn.com/bootstrap/3.0.1/js/bootstrap.js</href></action>
<action method="addLinkRel"><rel>text/css</rel><href>https://netdna.bootstrapcdn.com/bootstrap/3.0.1/css/bootstrap.css</href></action>
</reference>
...
in app\design\frontend\rau\default\layout\page.xml
<default translate="label" module="page">
<action method="addJs"><script>js/custom.js</script></action>
In rauqa\skin\frontend\rau\default\js\custom.js
jQuery(document).ready(function () {
console.log('tooltipp js....');
$j('.thiscategory .followlink').tooltip().eq(0).tooltip('show').tooltip('disable').one('mouseout', function() {
$j(this).tooltip('enable');
});
setTimeout(function() {
$j('.thiscategory .followlink').tooltip().eq(0).tooltip('hide').tooltip('enable');
}, 5000);
});
Error in console:
tooltipp js....
tooltip.js?q=29032018:3 Uncaught TypeError: $j(...).tooltip is not a function
at HTMLDocument. (tooltip.js?q=29032018:3)
at j (jquery.min.js?q=29032018:2)
at Object.fireWith [as resolveWith] (jquery.min.js?q=29032018:2)
at Function.ready (jquery.min.js?q=29032018:2)
at HTMLDocument.J (jquery.min.js?q=29032018:2)
To Verify if the js are loaded below is the screenshot:
custom.js file loaded
jquery loaded- not sure if this is the actual jquery file
This is the only jquery loaded

cdn for bootstrap.js and css loaded
Link to jquery :
Problem:
Not sure if i have included all the files correctly in the correct manner (html, xml)
Please point out where the issue is.. And the way i have to include the scripts for magento to identify.


