textarea Questions

11

Solved

I am working on angular2 applciation. i have a requirement to autosize textarea. I am trying to reuse the angular2-autosize from https://github.com/stevepapa/angular2-autosize Followed the readme...
Eld asked 16/3, 2017 at 7:27

31

I have a simple HTML textarea on my site. Right now, if you click Tab in it, it goes to the next field. I would like to make the tab button indent a few spaces instead. How can I do this?
Acceptant asked 9/7, 2011 at 20:42

11

Solved

How do you create a new line in a textarea when inserting the text via PHP? I thought it was \n but that gets literally printed in the textarea.
Subsistence asked 12/10, 2010 at 2:24

9

Solved

I just came across a situation in which it would be an elegant solution to have only portions of a text area (previously loaded with text) be editable while other portions are not ("greyed out", so...
Hallelujah asked 26/3, 2011 at 19:48

7

I have HTML textarea. I want to modify it, so that it implements auto-indentation, i.e. after NEWLINE is inserted, I want to automatically insert spaces at the beginning of the new line (the number...
Zucker asked 21/4, 2011 at 12:13

4

Solved

I have an HTML template and CSS that renders a textarea field, however when clicking in the field, the cursor starts from half way down the text area, not from the top left as I would expect. This ...
Izaguirre asked 13/8, 2011 at 12:37

4

Solved

I'm looking for a solution to a problem, but I'm not able to find it. It could be in AngularJS or in Javascript (then I'll translate it in AngularJS). The problem is that I have to limit the rows o...

7

I have a <textarea> element as in the code below. How can I display line numbers along the left margin of it? <TEXTAREA name="program" id="program" rows="15" ...
Stomachic asked 3/1, 2010 at 15:56

11

Solved

In order to disable a textarea (or any other input element), you can: In HTML, you can write: <textarea id='mytextarea' disabled></textarea> From jQuery, you can: $("#mytextarea").att...
Heredity asked 28/3, 2012 at 15:45

2

Solved

I have a simple script that uses left and right arrows to move to next and previous blogpost. var nextEl = document.getElementById("pagination__next__link"); var prevEl = document.getElementById("...
Bischoff asked 27/11, 2013 at 21:42

5

Solved

When I use textarea.checkValidity() or textarea.validity.valid in javascript with an invalid value both of those always return true, what am I doing wrong? <textarea name="test" pattern="[a-z]{...
Sheeran asked 30/11, 2012 at 10:32

11

Solved

I have some textareas and all of them are with tinyMCE. I would like to set the content of the specific textarea, but I can't find how. I have tryed this: tinyMCE.get('title').setContent(select...
Ichnography asked 2/8, 2012 at 15:22

4

Solved

I currently have a textarea which I requires control over text that has been pasted in, essentially I need to be able to take whatever the user wants to paste into a textarea and place it into a ...
Heavyfooted asked 13/7, 2010 at 16:17

7

I have an issue with a textarea that is defined on an asp.net page. The textarea is populated in the back end with text read directly from an mssql database. <div id="emailForm" runat="server" ...
Jegar asked 25/3, 2011 at 14:31

4

JavaFX: Is it possible to bind TextArea height (row count) to the height of its content? I would like to dynamically change height of TextArea while writing the text.
Shantay asked 23/3, 2013 at 23:27

8

Solved

I would like to start a textarea with inside a text that starts some line under the first line. Doing something like: var myText = '\r \r \r HELLO'; doesn't work: HELLO is written on the first l...
Johnjohna asked 22/2, 2011 at 18:50

12

I have a textarea and a button. Clicking the button causes text to be inserted into the textarea. Is there a way to allow a user to press Ctrl/Cmd+z to undo the insertion of text and revert the te...
Softshoe asked 28/11, 2012 at 2:54

9

Solved

Following up to my previous question (Add a scrollbar to a <textarea>) on how to always see the scrollbar in a <textarea>, I am now wondering how you would set it so that there is no sc...
Birdie asked 17/10, 2013 at 11:1

8

Solved

I'm trying to make a date textbox on my blog, and the date is only numbers. I don't want anybody making a mistake typing a letter. Is there any way to limit the characters to only numerals? Thanks!...
Lazo asked 22/3, 2014 at 0:38

8

Is there a way to add bullet points to an HTML textarea? I want to add a simple feature where a bullet point is added for every line in a text area (similar to a list bullet points).
Halfpint asked 31/7, 2012 at 3:48

11

Solved

I am trying to get the ckeditor working. Obviously it doesn't make use of the textarea so on submit the form doesn't submit the text in the editor. Beceause I make use of polymorphic associations e...
Necessitarianism asked 30/6, 2010 at 8:44

7

Solved

I have a textarea which displays some data from "history" column in my database. For unknown reason there is nearly 1.5 line of extra space before the text. Anyone can give me some idea why does it...
Discriminant asked 23/6, 2014 at 14:0

1

Solved

6

I heard that the new HTML5 will add rich text capability to textareas (it will make them more flexible), so you can do stuff like code syntax highlighting editors without very nasty javascrip...

8

I need to find a way to prevent users from selecting text in a textarea. The goal is to create a custom keyboard that is used to enter text in the textarea. I want users to be able to click on the ...
Handcart asked 2/10, 2013 at 13:56

© 2022 - 2024 — McMap. All rights reserved.