diff --git a/README.md b/README.md index fd8f2971..901d4889 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ The content is now being maintained by the jQuery Project at [web-learn-jquery-c jQuery Fundamentals will be serving as the basis for a new jQuery learning site maintained by the jQuery project, and ongoing maintenance and support for this -content will transfer to the jQuery project. For more details, se my [blog +content will transfer to the jQuery project. For more details, see my [blog post](http://blog.rebeccamurphey.com/the-future-of-jquery-fundamentals-and-a-confe). Please do not open issues on this repo; use the new jQuery Project repo instead. diff --git a/exercises/js/sandbox.js b/exercises/js/sandbox.js index e69de29b..c6b5e33a 100644 --- a/exercises/js/sandbox.js +++ b/exercises/js/sandbox.js @@ -0,0 +1,24 @@ +//Add five new list items to the end of the unordered list #myList. +var div = $('
'), + listItem = $('
  • ').html('List item'); +for (var i = 0; i < 5; i++) { + div.append(listItem.clone()); +} +$('#myList').append(div); + +//Remove the odd list items +$('li:nth-child(odd)').remove(); + +//Add another h2 and another paragraph to the last div.module +var heading = $('

    ').text('Hello'), + paragraph = $('

    ').text('Yes it is.'), + newDiv = $('

    ').append(heading, paragraph); +$('div.module').last().append(newDiv); + +//Add another option to the select element; give the option the value "Wednesday" +var option = $('