Most voted "textarea" questions
Textarea is an html tag that allows the user to type text in multiple lines.
Learn more…55 questions
Sort by count of
-
10
votes3
answers228
viewsWhat is the default value for the "resize" attribute in a textarea?
How to leave a textarea adjustable after it was set "resize: None"? For example, I have a textarea which has a value defined as resize:none in CSS, but I want to leave the default value by placing…
-
9
votes2
answers6568
views"placeholder" of "textarea" does not appear
I have a textarea with a placeholder which according to the documentation (English) is perfectly valid and should work: Example in Jsfiddle Part of the form <?php /* Apenas o código referente à…
-
8
votes2
answers2503
viewsJavascript, action on a selected text
People would like to know how to do an action on a selected text in the textarea, for example I selected the word 'hi' and when I click a button with Onlick, change the text to 'bye''. I await the…
-
8
votes4
answers5196
viewsHow to save line breaks from a textarea to the database?
I have a textarea and would like to save the user-made line breaks in the database. For example, user writes the following: "Lorem Ipsum. Is simply. Dummy text. Of the printing. And typesetting."…
-
7
votes1
answer92
viewsHow to detect when the textarea has more than one line?
I’m doing a chat, and I came across the following problem, my textarea when breaking a line, whether the user press enter or not have enough space and jump to the next line, my textearea does not…
-
5
votes1
answer162
viewsHow to create a textarea with multi columns (like a newspaper?)
There is a way to create a textarea that its display form is in multi columns?. I have several fields in textarea for the user to be able to make edits, but I need these textareas to be displayed in…
-
5
votes2
answers1955
viewsHow to insert HTML code into a textarea?
I would like to know how I can put an HTML code in a textarea, because I have a textarea that receives data from DB dynamically by date filters. ex: <textarea maxlength="8000" rows="15"…
-
4
votes2
answers976
viewsAttribute "wrap" of the textarea tag
What is the usefulness of the attribute wrap tag textarea? What is the difference between your values soft, hard, off?
-
4
votes2
answers1310
viewstextarea with notebook lines style
I need to make a form for printing that could be typed in the browser or printed for writing. As it can be written on the printed sheet, I need a style in the textarea that draws the lines as if it…
-
3
votes1
answer3435
viewsHow to make a text editor in a Tinymce style textarea?
I would like to know what exactly I must study in order to transform a textarea in a text editor WYSIWYG.Of course I know I must use Javascript,but I can’t imagine how styles are applied in real…
-
3
votes2
answers1901
viewsTextarea increase according to text
//However without using Function and picking up more than one TEXTAREA function autoResize() { objTextArea = document.getElementById('txtTextArea'); while (objTextArea.scrollHeight >…
-
3
votes1
answer404
viewsDifferentiate Enter from Shift Enter in a textarea, obtaining the value via javascript
I have a textarea out of a form: <textarea name="textoOriginal"> Within that textarea, I can type a text, and ENTER or SHIFT + ENTER for line breaking. When I take the value of the element, I…
-
2
votes1
answer56
viewsDetect ":" and show suggestions with jQuery
I own a textarea and would like to know how to detect the character : and, from there, show suggestions listed in an array with all the possibilities of "auto complete" and go filtering the…
-
2
votes2
answers1323
viewsPHP and Javascript - Disable a Submit button if textarea is empty
In the form of my website, I have a field textarea and a button Submit. Follow the code of both: <textarea name='texto1' id="txtBriefing" rows="5" style="font-family: Trebuchet MS; font-size:…
-
2
votes1
answer510
viewsFormat Textarea Javafx
I am creating a kind of Notepad, and I am trying to find some form, so that the úsuario can format its letter, size, color etc in a Javafx Textarea. Would anyone know if Javafx has a specific…
-
2
votes1
answer43
viewsHow to create a textarea autorisize with js?
I need to create a text field that grows with what the user writes, but has to be with pure Javascript, without jquery or something like.
-
2
votes2
answers796
viewsHow to put a json code in textarea html?
I am developing a page that displays snippets of code in JSON in a textarea, but I have seen on some sites that there is some kind of plugin for this type of display as in the "Errors / Exceptions"…
-
2
votes1
answer6846
viewsCreate a textarea with text editing options
I need to put a textarea where the person can edit the text. Ex: choose font size, apply bold, change text color, add photos along with text (one paragraph, 1 photo, plus a paragraph, 2 photos). Can…
-
2
votes0
answers122
viewslimit the number of characters per line in a multiline-type textbox
I would like in my field to allow up to 47 characters in each line, but I have a problem when the user leaves a line and keeps typing. Because it breaks the line before it completes the 47…
-
1
votes2
answers8633
views -
1
votes1
answer367
viewsDoubt about jTextArea.append (add the value of the area variable to Borderlayout) - Java
I have a problem with a line of code, this line that is underlined in the image, gives me an error that says that the coordinates X1, Y1, x2, Y2 have to be static, it turns out that this application…
-
1
votes0
answers264
viewsPassing textarea value to variable
I am trying to send the content of a textarea to another page, as code below: <textarea id="mensagem" rows="8" cols="100" maxlength="500" style="border-radius: 6px; resize:none;width: 90%;height:…
-
1
votes1
answer157
viewsHow can I add paragraphs to a TEXTAREA TAG?
$("#text").on("focus", function(){ $(this).keypress(function(e){ if(e.keyCode == 13 | e.which == 13){ //this.value += '</p><p>'; document.execCommand('formatBlock', false, 'p'); } });…
-
1
votes1
answer333
viewsProblem with line breaking JS
The problem is this, when breaking the line in textarea in div .result where the result of what is typed in the textarea, he just gives a space and doesn’t break the line. How do I make it break the…
-
1
votes1
answer55
viewsApply size to a textarea, unless it has the attribute "Rows"
I have a textarea which is formatted with the following rule: .wm-form textarea{ min-height:100px; resize: vertical; width:100%; border-radius:4px; border:1px solid #ccc; } <form…
-
1
votes1
answer86
viewsPreserve line breaking when Replicate val() content in span
Good afternoon, according to this topic - /questions/203969/replicar-conte%C3%Bado-de-val-em-span I have the following code $('textarea.skills_knowledge').blur(function() { var skills_knowledge =…
-
1
votes1
answer178
viewsHow to access the textarea, grab its value and display it?
I’m trying to create a notepad, and it stores the data in Localstorage, however, I cannot access the value that would be typed by the user, only what is already between the Textarea tag. I would…
-
1
votes3
answers66
viewsModify element through Javascript and "warn" page that element has been modified
$(document).ready(function(){ $("#myTextarea").change(function(){ alert("text area changed"); }); //$("#myTextarea").keydown(function(){ //alert("text area changed"); //}); }); setTimeout(function()…
-
1
votes1
answer106
viewsHow to do "When selecting an option in dropdwn, it loads other database data into a Textarea" in php, mysql and Jquery
I have a form that has a select field name="nome_cliente" retrieving all registered clients from the mysql database. in this same form I have several inputs that will be registered to that selected…
-
1
votes1
answer169
viewsEmpty textarea post with ajax jquery and formdata
I have a form that uses Ajax to do the POST in PHP and insert in the database to get the data using Formdata but the textarea inserts empty in the database. <script type="text/javascript">…
-
1
votes1
answer180
viewsmaxlength plugin in ckeditor does not work
I need to limit the number of characters in the Ckeditor. I followed the step by step of this topic: Limiting text in CKEDITOR But it didn’t work. Below the changes made to my code: <textarea…
-
1
votes1
answer24
viewsClear text coming from Laravel
I am with the following scenario, using the Plugin summernote for a textarea with the settings: <textarea id="summernote" name="editordata">{{$termos->termos}}</textarea> It returns…
-
1
votes2
answers208
viewsValue Textarea does not work React
Hello, I am trying to "popular" a textarea with a value, but when I try to edit the field and it does not allow. I tried using the property "defaultValue" but the field is empty. It follows parts of…
-
1
votes1
answer28
viewsTextarea problem that I use inside a map using React
I don’t have much experience with reactjs, but I’m doing a project that uses this lib, using typescript as a language. The problem is this, even before I used a map to render the elements of an…
-
0
votes1
answer61
viewsDoubt with PHP and textarea
all blz? I have a little problem. I have to send a text with paragraphs and line breaks, via php pro bd, and on another page call the text with the paragraphs and the correct line breaks, which I…
-
0
votes0
answers313
viewsTextarea Editable lines - Thymeleaf and Angularjs
I am building a basic document model, taking advantage of the same idea of colleague (Paulo Henrique), only that I enter the data by fields external to the form, in a previous moment of customer…
-
0
votes1
answer62
viewsGenerating new table rows with different textarea Names
Hello, I am trying to find a solution to my problem, I do not understand any javascript, but if anyone can help me I appreciate it. I have the following script that adds new lines in my table…
-
0
votes2
answers304
viewsReset all fields (input, textarea) of the html page
How can I make that through a button all the textarea of the page has its content deleted?
-
0
votes2
answers141
viewsTextarea with value that cannot be changed
So I have a textarea like this: <textarea id="mensagem" name="mensagem" type="text" style="width:400px; font-size:16px; height:100px; border-color:lightgray;" placeholder="Um texto qualquer"…
-
0
votes1
answer2289
viewsAdd color to javascript text
Hello, I have a problem, I need to add a color to a text that is added inside a textarea through a button. I tried to use x.style.color="red'"... but it didn’t work, if someone has a solution please…
-
0
votes1
answer22
viewsTyping effect not only responsive with CSS
Good afternoon, you guys, I did, with a help from some colleagues here, a Typing effect on the home, but it is not becoming responsive, is not adapting to the mobiles. I’m also trying to put another…
-
0
votes4
answers746
viewsLimit number of lines Textareafor
I have the following code snippet : @Html.TextAreaFor(model => model.men_mensagem, new { @cols = Model.Men_caracteres, @rows = Model.Men_linha }) I define the number of lines, but that’s just for…
-
0
votes0
answers217
viewsSolve textarea editing with jQuery
I am making an event registration, with PHP and jQuery, to register it all happens well, but when I change, it causes an error: Example: We all know that when we enter a page to edit, we have to…
-
0
votes3
answers948
viewsLimit maximum number of lines in a textarea
I have a textarea where I have limited the amount to 3 lines in the "Rows" property. However, this maximum amount is not being respected. Is there any other way not to allow more lines to jump?…
-
0
votes1
answer100
viewsNicedit not working in other textareas
I am creating a kind of forum on my client’s site. In this forum, to ask questions and comments, obviously use Textareas. However, I am using the Nicedit class to transform my textareas with option…
-
0
votes1
answer119
viewsError when testing with Laravel Dusk
Good morning guys, has anyone ever had experience with Laravel Dusk who can help me? I can not do the Authentication by Browser to be able to access the screens, in my case I have different Wards,…
-
0
votes0
answers281
viewsReturn data with database formatting in a Textarea
Good evening, I am saving the data in the database correctly, IE in the database is recorded: <p style="text-align: center;"><strong>teste negrito</strong></p>…
-
0
votes1
answer326
viewsInsert text to a textarea without modifying text that already exists with input
Personal how to insert a text to this Textarea without Modifying the value that is already inside it when filling in the inputs? I have a preview https://jsfiddle.net/orpwmc5b/3 when I type in…
-
0
votes1
answer63
views.val() does not work on the textarea tag
I’m taking a data that is in an attribute of my select-option (date-observation), so far so good, however when I try to pass this value to my textarea the value is not printed, just on the console,…
-
-1
votes1
answer861
viewsHow to capture textarea specific line in JS?
I’d like to know how to capture one specific line where there is certain occurrence based on the result of a textarea. The idea is to enable a personalized marking in the same sense as a markdown,…
javascript jquery web-application textarea markdownasked 6 years, 10 months ago Leonardo Pessatti 56