-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (41 loc) · 1.21 KB
/
index.html
File metadata and controls
57 lines (41 loc) · 1.21 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<title>Single-Page</title>
<!-- myFunction Takes the text from Text Area and will update in the list view below the button -->
<script>
function myFunction() {
var x = document.getElementById("myTextarea").value;
document.getElementById("demo").innerHTML = x;
var y = document.getElementById("mySelect");
var option = document.createElement("option");
option.text = document.getElementById("myTextarea").value;
y.add(option);
}
</script>
</head>
<body>
<div class="ui-page" id="main">
<div class="ui-header">
<h1>Write in the box </h1>
</div><!-- /header -->
<div class="ui-content">
<textarea rows="4" id="myTextarea">
</textarea>
<button type="button" onclick="myFunction()">Update Status</button>
<div>
<p id="demo"></p>
<form>
<select id="mySelect">
<option>
</option>
</select>
</form>
</div>
</div><!-- /content -->
</div><!-- /page -->
<script type="text/javascript" src="./lib/tau/mobile/js/tau.js"></script>
<script src="./js/main.js"></script>
</body>
</html>