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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -