forked from adamszaruga/jquery-examples
-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathexercise-7.html
More file actions
37 lines (35 loc) · 1.05 KB
/
exercise-7.html
File metadata and controls
37 lines (35 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
/*
Make a Todo List
0. Make it so that after entering the task description, in the text field and clicking the "Add Task" button, a new task appears inside the element with the id todo-list.
1. Add the ability to remove tasks (add an x button)
2. Add the ability to check off tasks (add a checkbox that changes the style of the list item)
3. Add the ability to edit an existing task (add an edit button that enables a text input, and a save button to confirm)
*/
</script>
<style>
#wrapper {
max-width: 480px;
margin: auto;
}
#description, #search, #todo-list {
font-size: 1.5em;
}
</style>
</head>
<body>
<div id="wrapper">
<input id="description" type="text" name="description">
<button id="add-button">Add Task</button>
<ul id="todo-list">
<li>Feed the cat</li>
</ul>
</div>
</body>
</html>