tags:

views:

114

answers:

4

Is there a web site that allows to edit a simple HTML fragment, insert jQuery code, and verify if the jQuery code has the desired effect?

+7  A: 

Check out http://www.jsbin.com. Make sure you select jQuery from the "Include:" dropdown.

Rob Sobers
+1 This is a great resource
Doug Neiner
This is exactly what I was looking for; it allows me to check if the jQuery code works before to change the page of my web site, or to change the code of the module I am developing for Drupal.
kiamlaluno
+2  A: 

I usually use Firebug to test small snippets of jquery. Open any page you want that includes jquery, even the page of this very question, press F12 and run your snippets.

Andreas Bonini
Also be sure to use FireQuery to be able to insert jQuery into any page and do more advanced diagnostics.
Doug Neiner
I will keep in mind this suggestion for when I need to debug the jQuery code for a Drupal module I am writting. The other suggested method (the web site) allows me to check the jQuery code before to modify the code I am writing.
kiamlaluno
A: 

I suggest http://www.w3schools.com/ There are simple tutorials too. Just go to the tutorial and find "try it yourself!" button to start testing.

Sorry can't hyperlink it. Posting from phone...

Jim
+1  A: 

Personal I like to use http://jsfiddle.net/. It allows you to test HTML, CSS, Javascript + multiple frameworks all from one simple page.

APShredder