forked from alexbardas/jQuery.fn.autoResize
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
41 lines (27 loc) · 646 Bytes
/
test.html
File metadata and controls
41 lines (27 loc) · 646 Bytes
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
<!doctype html>
<meta charset="utf-8" />
<title>autoResize demo</title>
<style>
body {
width: 700px;
font-family: sans-serif;
}
h1 {
margin: 0;
padding: 10px 0 20px;
}
#t, #i {
font-family: inherit;
font-size: 1em;
}
#t { display: block; width: 100%; }
</style>
<h1>Textarea</h1>
<textarea id="t"></textarea><textarea></textarea><textarea></textarea><textarea></textarea><textarea></textarea>
<h1>Input</h1>
<input id="i" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script src="jquery.autoresize.js"></script>
<script>
$('textarea,input').autoResize({});
</script>