-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_div.html
55 lines (34 loc) · 951 Bytes
/
add_div.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
53
54
55
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="robots" content="" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load("jquery", "1");</script>
</head>
<body>
<a href="#" id="reply">Reply</a>
<div id='message'>
<form id="myForm" action="somePage.php" method="get">
<div id="text_area">
</div>
<div id='submit'>
</div>
</form>
</div>
</body>
</html>
<script type="text/javascript">
$(document).ready(function() {
$('#reply').click(function(e) {
//Create and add an input box
$('<textarea>').attr({'id':'body', 'rows':'10', 'cols':'60'}).appendTo("#text_area");
$('<input />').attr({'type':'submit', 'id':'Send'}).appendTo("#submit")
$(this).slideUp();
return false;
});
});
</script>