Quotes help make search much faster. Example: "Practice Makes Perfect"

Monday, November 26, 2012

Codecademy: "Remove What's Been Clicked"


//sample solution to script.js


$(document).ready(function(){
$('#button').click(function(){
var toAdd = $('input[name=checkListItem]').val();
//remember to click on the Add button when testing
$('.list').append("<div class='item'>" + toAdd + "</div>");
});
$(document).on('click','.item',function(){
$(this).remove();
});
});

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts