Skip to content

Instantly share code, notes, and snippets.

Created September 28, 2016 18:34
Show Gist options
  • Save anonymous/a7add88866eb9e044ef48c25a6f8ed62 to your computer and use it in GitHub Desktop.
Save anonymous/a7add88866eb9e044ef48c25a6f8ed62 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/woximuyewa
<!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>
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