jsFiddle is divided into few sections: menu, sidebar, and editing panels.
One may switch between editing panels using the ctrl + up arrow and ctrl + down arrow.
Code entered in this panel will be rendered inside body of the document, that is between <body> and </body>.
Warning
Please do not enter doctype, body etc. into the HTML panel. These tags are placed automatically.
Code entered in this panel will be placed in the header’s style block, that is betweeen <style> and </style>.
Note
If there is a need to edit the header one can use a CSS panel hack
Code entered in this panel will be placed in header’s script block, that is between <script type="text/javascript"> and </script>.
This panel is read only - it contains an iframe with the result of running the fiddle. One can show the result without saving the fiddle - it is enough to click on Run or hit ctrl + Enter key combination
Only for registered users. Current result is saved in a draft.
One may access it by loading the http://jsfiddle.net/draft/. The shortcut is ctrl + shift + Enter.
Note
Using Draft is the easiest and probably best way to test fiddle in “other browser”. Be it IE5, or anything running on other system, mobile or your watch if it happened to have a web browser. Keep editing on your favourite browser, test on anything else.
Save the code for future usage or to share it to other people. Let me say it again: There is no need to save if you just want to test.
Buttons Save or Fork are always present in the UI. First one appears if no fiddle was loaded, the latter is used to create a new fiddle from the existing one.
If a fiddle is loaded clicking on Update will create a new version of the fiddle and load it into the browser. Its URL will now contain a version number. This and former versions are still available.
If no version is specified jsFiddle will load the base version. By default it’s the first created version. Owner of the fiddle - user who created the first version may change it by clicking on the button Set as Base.
It is considered a good practice to use base version for embedded fiddles. Author can fix the error and “update” the example on the page without accessing the article’s code.
Contains 2 selectable lists.
First is the list of all supported frameworks. Choosing one will create <script> tag in the <head> section which will load the desired framework version. Choosing the No-Library one will not load any framework.
Below there is a list of additional libraries dependent on currently selected framework version. In example - choosing MooTools Core 1.2.4 will load a lit containing MooTools More, Clientcide, FormCheck, Upgrade Helper and ART. All these may be loaded with the fiddle if checkbox is checked.
Second drop-down is about the Code Wrap with default setting to “onLoad”. There are 4 options to choose:
CSS or JS (with appropriate extension) which should be loaded after the framework. It’s a perfect place to put libraries which are framework independent, like RaphaelJS
JSFiddle is recognizing the type of the resource by the extension. JavaScript will be chosen if type is unknown.
Note
If you want to use a dynamic resource please add a dummy GET variable i.e. http://example.com/dynamically.php?somevar=somevalue&dummy=.css. This will trick jsFiddle to recognize it as CSS resource.