Questions tagged as 'textarea'

3
answers

What is the default value for the "resize" attribute in a textarea?

How to make a textarea adjustable after resize: none has been set? For example, I have a textarea that has a value set to resize:none in CSS, however I want to leave the default value by putting an inline snippet. ....
asked by 17.01.2017 / 13:50
2
answers

"placeholder" of "textarea" does not appear

I have textarea with placeholder that according to documentation (English) is perfectly valid and should work: Example in JSFiddle Part of the form <?php /* Apenas o código referente à textarea */ $oc_message =...
asked by 23.01.2014 / 13:50
4
answers

How to save line breaks from a textarea to the database? [duplicate]

I have textarea and would like to save the line breaks made by the user in the database. For example , the user writes the following: "Lorem Ipsum. Is simply. Dummy text. Of the printing. And typesetting." But in the database, i...
asked by 06.01.2017 / 20:08
2
answers

Javascript, action on selected text

Galera would like to know how to do an action on text selected in textarea, for example I selected the word 'hi' and when I click a button with Onlick, change the text to 'bye'. I await the answer, because I am looking all day and I do not th...
asked by 20.08.2015 / 21:11
1
answer

How to create a textarea with multi columns (like a newspaper?)

Is there a way to create a textarea that its display is multi-column? I have several fields in textarea for the user to be able to make edits, but I need these textareas to be displayed in a newspaper form, those of multi columns. I resear...
asked by 29.09.2015 / 17:02
2
answers

Wrap attribute of textarea tag

What is the utility of the wrap attribute of the textarea tag? What's the difference between your soft, hard, off values?     
asked by 17.02.2016 / 17:23
2
answers

textarea with lines of notebook style

I need to make a print form that could be typed in the browser or printed for writing. As can be written on the printed sheet, I need a bookmark in the textarea that draws the lines as if it were a notebook. I need this model: body {...
asked by 20.03.2016 / 16:12
2
answers

Textarea increase as text

// But without using function and picking up more than one TEXTAREA function autoResize() { objTextArea = document.getElementById('txtTextArea'); while (objTextArea.scrollHeight > objTextArea.offsetHeight)...
asked by 21.11.2017 / 19:00
1
answer

How do I make a text editor in a TinyMCE-style textarea?

I would like to know what exactly I should study to be able to transform a textarea into a WYSIWYG text editor. Logically I know that I should use Javascript , but I can not imagine how the styles are applied in real time in the content with...
asked by 24.03.2017 / 20:58
2
answers

PHP and Javascript - Disable a submit button if textarea is empty

In the form of my site, I have a textarea field and a submit button. Here is the code for both: <textarea name='texto1' id="txtBriefing" rows="5" style="font-family: Trebuchet MS; font-size: 16px; width: 394px; height: 100px" onkeyup="d...
asked by 29.10.2015 / 13:12