jQuery in Magento
I've written a little slider script in jQuery which I want to run in my Magento store. I have included this script in my view.phtml but it doesn't seem to work. What am I doing wrong? I'm pretty new to Magento and have no idea on how to add custom scripts. <script type="text/javascript">// < ![CDATA[ jQuery(document).ready(function(){ var active = 0; // starts at zero var list = jQuery('ul'); list.children('li').eq('0').siblings().hide(); // Hide all except first list element jQuery('.next').bind('click', function() { active = active == list.children('li').length-1 ? 0 : active + 1; }); jQuery