-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
60 lines (42 loc) · 1.43 KB
/
test.html
File metadata and controls
60 lines (42 loc) · 1.43 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
58
59
60
<!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 src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#add_line1').click(function() {
var text = document.getElementById("txtarea");
$('#content1').append(text.value + '<br>');
text.value = "";
});
});
</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 id="txtarea" style="width: 250px; height: 119px;"></textarea>
<button type="submit" id="add_line1" value="Add a line">Update Status</button>
<div id="content1" style="margin-left:20px;">
</div>
<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>