textarea Questions

4

I want to adjust my textarea height dynamically with Refs and pass it to the state but it don't work correctly. I created a codesandbox to help you to understand what exactly I want. https://code...
Buffybuford asked 28/2, 2019 at 1:42

7

Solved

I would like to print only the contents of a textarea element from a website page. In particular, I would like to ensure that nothing gets clipped by the boundary of the textarea as the contents wi...
Pelops asked 7/11, 2008 at 16:48

6

Solved

according to w3 schools <textarea> supports onresize however it is not working. http://www.w3schools.com/jsref/event_onresize.asp browsers tried: Chrome 25.0.1364.172 Safari 6.0.3 (7536....
Thematic asked 19/3, 2013 at 9:42

5

I am trying to make a textarea content editable and I am failing. I am using this code: <textarea id='' class='' name='notes' rows='12' cols='67' contenteditable='true' ></textarea> ...
Heronry asked 14/10, 2009 at 14:56

7

Solved

I'm trying to auto resize the textarea so it fits the content in it but I'm facing a stuttering issue after I click enter to proceed to the next line. How can I fix this? This is what I'm trying t...
Aurelie asked 24/9, 2019 at 4:16

4

Solved

The padding of a textarea is always fixed. When the text content of the textarea is scrolled, the padding remains near the edges. The padding of a contenteditable element behaves differently. When...
Rochellerochemont asked 20/12, 2014 at 4:4

5

Solved

I would like to find out and keep track of the 'line number' (rows) of the cursor in a textarea. (The 'bigger picture' is to parse the text on the line every time a new line is created/modified/sel...
Papilloma asked 7/2, 2012 at 23:24

3

I have a webform my client wants users to be able to print out. It works fine with a little styling using CSS, however, I have several textaear fields. If a user types more than the height of the t...
Names asked 24/2, 2014 at 4:0

17

Solved

I have the following code, and I'm kind of stuck on what to do next. The idea is when you enter text into a text area a counter tells you how many characters you have left. Once you get to the max ...
Beanie asked 13/3, 2011 at 20:39

7

Solved

I'd like to disable the spellcheck on my textfields <input type="text"> so as not to have any ugly red squigglies. I understand others have asked this same question, but they always make the...
Whitfield asked 13/5, 2011 at 2:52

52

Solved

There was another thread about this, which I've tried. But there is one problem: the textarea doesn't shrink if you delete the content. I can't find any way to shrink it to the correct size - the c...
Tithonus asked 17/1, 2009 at 22:30

7

Solved

I try to set id4 in the following code: <div id="id1"> <div id="id2"> <div id="id3"> <textarea id="id4"></textarea> </div> </div> </div> By u...
Snaffle asked 4/12, 2011 at 21:19

6

Solved

I'm working on a project where I have data in divs that can be various sizes. When a user clicks on one of the divs, it needs to turn into an editable textarea. The width is constant, but I'd like ...
Prowel asked 5/4, 2013 at 22:48

17

Solved

I have ghost text in textfields that disappear when you focus on them using HTML5's placeholder attribute: <input type="text" name="email" placeholder="Enter email"/> I want to use that sa...
Another asked 25/8, 2011 at 11:0

7

Solved

I would like to use the functionality of CodeMirror (such as linenumbering, wrapping, search, etc.) for plain text, without particular need of code highlightening but instead with Google Chrome spe...
Austine asked 9/9, 2012 at 23:47

8

Solved

When attempting to output an empty textarea element, the .NET XSLT processor collapses the element to its short form. Instead of this: <textarea id="blah" name="blah"></textarea> I g...
Exciter asked 16/2, 2009 at 2:7

6

Solved

How does Stackoverflow implement the resizable textarea? Is that something they rolled themselves or is it a publicly available component that I can easily attach to textareas on my sites? I fou...
Zeigler asked 29/9, 2008 at 16:14

4

Looking at the documentation for a floating label of a textarea, https://getbootstrap.com/docs/5.0/forms/floating-labels/, it appears that the label overlaps with the input if the content is scroll...
Selfeducated asked 30/3, 2021 at 0:17

6

So I want to show image thumbnails too in the <textarea> along with text. If you know a javascript solution that's perfect too(if possible in vanilla JS). Like this: __________________ |Hel...
Charles asked 25/9, 2010 at 8:43

10

Solved

I'm using ASP.net MVC C# in Visual Studio Web Dev. I have a couple of textareas which are populated with data and then updated to a database record. Is it possible to have line breaks saved when ...
Sylvestersylvia asked 23/3, 2012 at 17:46

5

Solved

I can't find any info anywhere on how to change the default width of a TextAreaAutosize component in material-ui. It seems the only choice is to have this little box. Does anyone know of a better ...
Cyd asked 19/6, 2020 at 17:42

5

Solved

I have a form with a textarea and I want to preserve line breaks entered by the user when outputting the content. For exemple, if I write in textarea : Here is a sentence. Here is another. her...
Kibitzer asked 2/6, 2015 at 10:8

2

Solved

I read w3schools and MDN to learn how the wrap attribute of <textarea> works. I saw a question here that explains the difference between soft and hard wrap but I can't understand it. Can anyo...
Lucey asked 29/8, 2021 at 14:14

5

I have assembled a basic jfiddle below. For some reason my selector works to retrieve the textarea box to set the value, but the selector doesnt work to use the setSelectionRange function. On the c...
Vinia asked 18/6, 2013 at 0:14

22

Solved

I want to disable the resizable property of a textarea. Currently, I can resize a textarea by clicking on the bottom right corner of the textarea and dragging the mouse. How can I disable this? ...
Ironclad asked 8/3, 2011 at 16:15

© 2022 - 2024 — McMap. All rights reserved.