Search code examples
jqueryhoverjquery-hover

jquery works on jsfiddle, but not on my website


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


Solution

  • 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
    });