From 68603b1e53a965a53aad5795196e9c3b295d364d Mon Sep 17 00:00:00 2001 From: Rebecca Murphey Date: Tue, 10 May 2011 06:25:59 -0400 Subject: [PATCH 1/4] Fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From 9144ed1651861e850456e09d2450a5283d382215 Mon Sep 17 00:00:00 2001 From: Shubham Juneja Date: Sat, 13 Oct 2018 13:30:47 +0530 Subject: [PATCH 2/4] Add Jquery --- exercises/js/sandbox.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/exercises/js/sandbox.js b/exercises/js/sandbox.js index e69de29b..a878da4f 100644 --- a/exercises/js/sandbox.js +++ b/exercises/js/sandbox.js @@ -0,0 +1,25 @@ +//Add five new list items to the end of the unordered list #myList. +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'); +var paragraph = $('

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

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