Created
September 28, 2016 18:34
-
-
Save anonymous/a7add88866eb9e044ef48c25a6f8ed62 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/woximuyewa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<script src="https://code.jquery.com/jquery-3.0.0.js"></script> | |
</head> | |
<body> | |
<h1>My Awesome ToDo List</h1> | |
<ul id="todo-list"> | |
</ul> | |
<script id="jsbin-javascript"> | |
var todoListItems = [ | |
{"title" : "Walk the dog"}, | |
{"title" : "Clean the car"}, | |
{"title" : "Do the laundry"} | |
] | |
// Append each to do list item in the | |
// array to the un ordered list with | |
// the id of "todo-list". | |
// Use jQuery. | |
var addTodos = function() { | |
// add the todo's here | |
} | |
$(addTodos) | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">var todoListItems = [ | |
{"title" : "Walk the dog"}, | |
{"title" : "Clean the car"}, | |
{"title" : "Do the laundry"} | |
] | |
// Append each to do list item in the | |
// array to the un ordered list with | |
// the id of "todo-list". | |
// Use jQuery. | |
var addTodos = function() { | |
// add the todo's here | |
} | |
$(addTodos)</script></body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var todoListItems = [ | |
{"title" : "Walk the dog"}, | |
{"title" : "Clean the car"}, | |
{"title" : "Do the laundry"} | |
] | |
// Append each to do list item in the | |
// array to the un ordered list with | |
// the id of "todo-list". | |
// Use jQuery. | |
var addTodos = function() { | |
// add the todo's here | |
} | |
$(addTodos) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment