Skip to content Skip to sidebar Skip to footer

Jsfiddle Code Not Working In Regular Browser

I am trying to create a simple slider for my website and found this example on jsfiddle: http://jsfiddle.net/AtFeF/79/ From that I created an html file containing all three compone

Solution 1:

You need to include the required javascript files (particularly jQuery).

Add this section to your <head> and it should work.

<scriptsrc="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>

or

<scriptsrc="http://code.jquery.com/jquery-1.9.1.min.js"></script>

Solution 2:

Import/include jquery file in your code

<scriptsrc="http://code.jquery.com/jquery-1.11.0.min.js"></script>

or the version that you have at fiddle 1.9.1

<scriptsrc="http://code.jquery.com/jquery-1.9.1.min.js"></script>

Solution 3:

Add jQuery

<scriptsrc="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>

Enclose the script in onload, and add it after the jQuery script tag

$(window).load(function(){
  // existing code
});

You can generally find what you need to add in left sidebar of jsFiddle

Post a Comment for "Jsfiddle Code Not Working In Regular Browser"