forked from mbklein/jquery-elastic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
30 lines (27 loc) · 990 Bytes
/
index.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Demo - Elastic</title>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<link href="dependencies/screen.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div class="form">
<p>
<label>Fill the textarea to make it grow</label>
<span class="w">
<textarea class="input">This textarea is going to grow when you fill it with text. Just type a few more words in it and you will see.</textarea>
</span>
</p>
</div>
<script src="dependencies/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="jquery.elastic.source.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function(){
$('textarea').elastic();
});
// ]]>
</script>
</body>
</html>