An easy way to play with jQuery
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Peter J. Jones f46e5673aa Initial commit 7 年前 Initial commit 7 年前
behavior.js Initial commit 7 年前
playground.html Initial commit 7 年前
style.css Initial commit 7 年前

jQuery Playground

Using the playground.html file and a web console such as Firebug, the jQuery Playground is a great place to experiment with jQuery features.

What to Play With

Here is what I suggest:

  1. Write some JavaScript in behavior.js so that when one of the <li> elements is clicked, it is removed from the DOM.

  2. Add more code to behavior.js so that when someone writes text into the form and presses the “Add” button a new <li> element is created with the text from the form.

  3. Make new <li> elements yellow for 2 seconds, then return them to normal.