How to limit height expand and show vertical scrollbar?
I am trying to control a textbox. Here's my initial code:
- $(document).ready(function () {
- $('.expanding').autogrow();
- });
- $(function () {
- $("textarea[id$=txtInsertDefinition]").blur(function () {
- $(this).next().hide("normal");
- });
- $("textarea[id$=txtInsertDefinition]").focus(function () {
- $(this).next().show("normal");
- });
- });
I want to limit the autogrow height, to say 100px, and then turn on vertical scroll bar for this textbox. How do I do that?