title: javascript doesn't work on Joomla 3
body: <p>I always use jquery script directly to joomla's modules. </p>
  
  <p>Lately, I switched from using Joomla2 to Joomla3. Somehow, scripts are not working anymore in  modules. Anybody knows why?</p>
  
  <p>(some script still works though)</p>
  
  <p>Example:
  This is what I am working on.</p>
  
  <pre><code>&lt;a href="#intro"&gt;Intro&lt;/a&gt; &lt;a href="#about"&gt;About&lt;/a&gt; &lt;a href="#info"&gt;Info&lt;/a&gt;
  &lt;h1 id="intro"&gt;Intro&lt;/h1&gt;
  &lt;p&gt;abcd&lt;/p&gt;
  &lt;h1 id="about"&gt;About&lt;/h1&gt;
  &lt;p&gt;xxxxxxxxxx&lt;/p&gt;
  &lt;p&gt;xxxxxxxxxx&lt;/p&gt;
  
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  var jump=function(e)
  {
         //prevent the "normal" behaviour which would be a "hard" jump
         e.preventDefault();
         //Get the target
         var target = $(this).attr("href");
         //perform animated scrolling
         $('html,body').animate(
         {
                 //get top-position of target-element and set it as scroll target
                 scrollTop: $(target).offset().top
         //scrolldelay: 2 seconds
         },600,function()
         {
                 //attach the hash (#jumptarget) to the pageurl
                 location.hash = target;
         });
  
  }
  
  $(document).ready(function()
  {
         $('a[href*=#]').bind("click", jump);
         return false;
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>The code gives a smooth scroll on targeted menu id.
  If I use above code in Joomla2 module, it works great but doesn't work in Joomla 3.</p>
  
  <p>Any idea?</p>