Skip to content
Newer
Older
100644 69 lines (55 sloc) 1.58 KB
18a8f32 @stsquad ta_test: add some editable divs for testing
authored Oct 19, 2011
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
4
5 <style type="text/css">
6 div.editable {
7 width: 339px;
8 border-width: 1px;
9 box-sizing: border-box;
10 word-wrap: break-word;
11 }
12 </style>
13
14 <title>Text Area Test</title>
15
16 </head>
17
18 <body>
19
20 <script language="JavaScript">
21 function seeTextArea (form) {
22 alert (form.children[1].value);
23 }
24 </script>
25
26
27 <form name="myform">
28 <input type="button" name="ta1_test" value="Test" onclick="seeTextArea(this.form)"/>
29 <textarea name="first_textarea" cols="40" rows="5" id="foo">
30 Text Area 1
31 </textarea>
32 </form>
33
34 <form name="myform2">
35 <input type="button" name="ta2_test" value="Test" onclick="seeTextArea(this.form)"/>
36 <textarea name="second_textarea" cols="40" rows="5" id="bar">
37 Text Area 2
38 </textarea>
39 </form>
40
41 <form name="myroform">
42 <input type="button" name="ro_button" value="Test" onclick="seeTextArea(this.form)"/>
43 <textarea name="read" cols="40" rows="5" id="baz" readonly="readonly">
c66a7f1 @stsquad Fix up the test case a little
authored May 4, 2011
44 This is some read-only text
18a8f32 @stsquad ta_test: add some editable divs for testing
authored Oct 19, 2011
45 </textarea>
46 </form>
47
48 <p>
49 <div>
50 <input type="button" name="ro_button" value="Test" onclick="showDiv(#ce1)"/>
51 <div class="editable" id="ce1" contenteditable="true">
52 This is an editable div....
53 </div>
54 </div>
55 </p>
56
57 <p>
58 <div>
59 <input type="button" name="ro_button" value="Test" onclick="showDiv(#ce2)"/>
60 <div class="editable" id="ce2" contenteditable="plaintext-only">
61 Some content is plain text only...
62 </div>
63 </div>
64 </p>
65
66 </body>
67 </html>
2aea6db Find text area with jQuery and tag an ID to it
Alex Bennee authored Dec 14, 2009
68
Something went wrong with that request. Please try again.