Jquery, change the textArea size -
I want to change the text. Arrays: When I click on the text area, I have to show all the text.
Change the size of the function MyTextArea () {$ ('# myTextArea'), when I leave it, the height must be returned to its default value. .css ("height", 120); }
Occasionally I need more than 120 to show all the text, how can I move it.
This is a very easy way to get: You need to add textere content to a device, which The page is offset by (by CSS). Then you get the height of the divis and it applies to your texture. & lt; Br> What is needed to change the line breaks of the textarera in the tag, which you can get with simple replace (), here is the code: $ (' # myTextArea '). ('Click', function () {orig_h = $ (this) .height () html = $ ('# myTextArea'). Val (). Replace (/ \ r $ ('# myoffthepageTextArea'). Html (html ); h = $ ('# myoffthepageTextArea') height () $ ('\' height (h)}). ('blurred', function () {$ ('# myTextArea'). altitude (orig_h)}); Here's the Bella:
Comments
Post a Comment