Questions and Answers
Problems and Solutions
Quotes help make search much faster. Example: "Practice Makes Perfect"
Thursday, November 8, 2012
Codecademy: Sample Solution to "Empty the Trash"
//Sample solution to script.js
$('document').ready(function() {
$('#emptyTrash').click(function() {
//write code that calls
//empty on the div with id 'trash'
var $divTrash = $('#trash');
$divTrash.empty();
});
});
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
This is an example of
scrolling text
using Javascript.
Popular Posts
No comments:
Post a Comment