5 <title>ステータスページ
</title>
6 <script src=
"//code.jquery.com/jquery-1.11.2.min.js"></script>
7 <script src=
"//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
9 $(document
).ready(function() {
11 $('#textarea_feedback').val(text_max
);
13 $('#messageBox').keyup(function() {
14 var text_length
= $('#messageBox').val().length
;
15 var text_remaining
= text_max
- text_length
;
17 $('#textarea_feedback').val(text_remaining
);
23 background-color: #f2f2f2;
24 border-color: #bfbfbf;
32 <textarea id=
"messageBox" maxlength=
"250"></textarea>
33 <input type=
"text" id=
"textarea_feedback" readonly=
"readonly">