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

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

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