I added the jQuery plugin smoothdivscroll to a block, it’s works though it is not good to hard code all stuff to the block. I found that Drupal have already called jQuery core file in each page, but why the smoothdivscroll can’t getting works if I don’t add the jQuery core file AGAIN in the block?
Share
It’s because stock Drupal 7 runs jQuery in no conflict mode.
If you want to use it you’ll have to either replace your $() calls with jQuery() calls, or wrap it in a function like this:
In your case you’ll want to call your smoothdivscroll functions from inside this function.