javascript - animate textarea content -
I have a paragraph of a user entering the text in the text.
line1 line2 line3 < Can it be done only with jquery? Intentionally, all text will be blackened when a button will be converted to red in color of each line (2 seconds each line)
/ P>
Edit: Sorry, friend again, you did not realize that you told Textaia at this time.
No, it can not be done. However, you can:
When the button is pressed, hide the textaria and display a divis in one place with content from the texture. Instead of displaying animation on it Of course this will not be editable anymore, but as I do not know what you are trying to achieve, this can be a work.
Here is an example above.
& lt; Textarea id = "ta" & gt; & Lt; / Textarea & gt; & Lt; Div id = "ta_div" style = "display: none;" & Gt; & Lt; / Div & gt; & Lt; Br / & gt; & Lt; Input type = "button" id = "go" value = "go" /> & Lt; Script & gt; Click $ ("# Go") (function () {var text = document.getElementById ("ta"). Value> text = "& lt; p & gt;" + text.replace (/ \ n / g, $ ("# Ta_div"). $ ("# Ta"). Hide (); $ ("# ta_div") / "(ARE [++ ii]) $ (ARE [ Ii)). Chetan ({color: (i5) "# ff0000"}, 2000, "linear", rationalities.)}) ();}); & Lt; / Script & gt;
Comments
Post a Comment