-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTO DO webapp.html
52 lines (45 loc) · 1.3 KB
/
TO DO webapp.html
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<head>
<title>TO DO APP</title>
<meta href-equiv="viewport" content="width=device-width initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css\bootstrap.min.css">
✕
<style type="text/css">
.commonprop
{
height:500px;
width: 400px
}
</style>
<script type="text/javascript">
function additem()
{
var d1=document.createElement("input");
//var t1=document.createTextNode(document.getElementById("item").value);
//this is my content
var content= document.getElementById("item").value;
console.log(content);
d1.value= content;
// d1.appendChild(t1);
var addchild=document.getElementById("inputfield");
addchild.appendChild(d1);
}
</script>
</head>
<body>
<div class="row">
<div class="col-lg-6 commonprop jumbotron text-center" style="background-color: lavenderblush;">
<h2 align="center">TODAY'S LIST</h2>
<div id="inputfield">
</div>
</div>
<div class="col-lg-6 commonprop jumbotron text-center" style="background-color: lavender">
<label><b>Add items : <b></label><input type="text" id="item" placeholder="Enter the text"></b><br>
<input type="button" value="ADD" onclick="additem()"></button>
<p id="hid" style="display:none; ">hey,i am paragraph</p>
</div>
</div>
</body>
</html>