April 2, 2012

jquery works on jsfiddle, but not on my website

Question by user1099029

Here is the link to the jsfiddle: http://jsfiddle.net/d3xMZ/

when I hover, it does exactly what it is suppose to do, which is load the social sharing.
but when I implemented it on my website, nothing happens on hover.
Can anyone help, I have googgled and looked at similar questions on stackoverflow, but no luck

Answer by Starx

First, Include the jquery library on your code.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

Next, Wrap the jquery code inside

$(function() {
  //place the js part here
});
...

Please fill the form - I will response as fast as I can!