Questions tagged [textinput]

For questions related to a single-line, text input. EG: ``, or a UITextField, or TextInput (Flash), or `` (RSS). ... Use textarea for multiline or WYSIWYG text controls.

Use the tag for questions related to a single-line, text input.
For example:

  1. <input type="text" ...>
  2. An Apple UITextField control
  3. A Flash TextInput control
  4. An RSS <textinput>

Use for multiline or WYSIWYG text controls.

References:

  1. <input> references: Mozilla MDN,   w3schools
  2. UITextField class reference (Apple IOS)
  3. TextInput class reference (Adobe Flash)
  4. RSS <textinput> reference


Note:
Hand purge the tag? (It currently has 18 questions as opposed to 347 for .)

1365 questions
1112
votes
13 answers

Get the value in an input text box

What are the ways to get and render an input value using jQuery? Here is one: $(document).ready(function() { $("#txt_name").keyup(function() { alert($(this).val()); }); })
Bharanikumar
  • 25,457
  • 50
  • 131
  • 201
685
votes
29 answers

Selecting all text in HTML text input when clicked

I have the following code to display a textbox in a HTML webpage. When the page displays, the text contains the Please enter the user ID message. However, I found that…
Questions
  • 20,055
  • 29
  • 72
  • 101
79
votes
11 answers

How to disable Paste (Ctrl+V) with jQuery?

How can I disable Paste (Ctrl+V) option using jQuery in one of my input text fields?
Misam
  • 4,320
  • 2
  • 25
  • 43
73
votes
9 answers

Disable Options on React-Native Text Input

I am using TextInput for a project and wanted to DISABLE any kind of text selection or actions like (cut/copy/paste/share) as shared in the screenshot below. I am not able find anything in the react-native official documentation
firebolt_ash
  • 1,204
  • 4
  • 13
  • 21
66
votes
3 answers

UITextField focus

How can I programmatically assign focus to a specific UITextField in a view? I have several fields and on view display, I'd like to put the cursor on a specific field, not the first one at top.
Robin Jamieson
  • 1,425
  • 2
  • 19
  • 27
58
votes
6 answers

Twitter Bootstrap inline input with dropdown

I'm trying to display a text input inline with a dropdown button. I can't figure out how to do this though. Here's the HTML I've tried (I've put all of it on a single line with no results):
Misha M
  • 10,979
  • 17
  • 53
  • 65
52
votes
1 answer

How to simulate typing in input field using jQuery?

What I want is to simulate typing in field using javascript. I have the following code: var press = jQuery.Event("keydown"); press.ctrlKey = false; press.which = 65; $("#test").trigger(press); But when I load the page, the #test input field…
44
votes
6 answers

React native build error: Attempt to invoke virtual method'boolean com.facebook.react.uimanager.FabricViewStateManager.hasStateWrappper()

My previous builds work fine, but now I'm getting this error when I try to take a build. I don't know how to resolve this error. If anyone faces the same issue please help me out. Attempt to invoke virtual method'boolean…
Ashish Verma
  • 441
  • 1
  • 4
  • 4
35
votes
7 answers

what input field type forces the number pad mobile keyboard to come up when focused?

I tried the but on Opera that outputs a strange input box coupled with an "up and down" handler. What I expected was a regular text field that once you focus on it prompts the number keyboard instead of the alphabets. Is that…
Ayyash
  • 4,257
  • 9
  • 39
  • 58
35
votes
9 answers

Default text on input

How to set blank default text on input field and clear it when element is active.
Jaro
  • 982
  • 1
  • 10
  • 25
32
votes
17 answers

How to set the textinput box above the Keyboard while entering the input field in react native

I am using react-native TextInput component. Here I need to show the InputBox above the keyboard if the user clicks on the textInput field. I have tried below but i am facing the issues 1. Keyboard avoiding view a. Here it shows some empty space…
sejn
  • 2,040
  • 6
  • 28
  • 82
32
votes
5 answers

How can I create a text input box with Pygame?

I want to get some text input from the user in Python and display what they are typing in a text box, and when they press enter, it gets stored in a string. I've looked everywhere, but I just can't find anything. I'm using Pygame.
Deps
  • 555
  • 1
  • 4
  • 12
32
votes
5 answers

processing strings of text for neural network input

I understand that ANN input must be normalized, standardized, etc. Leaving the peculiarities and models of various ANN's aside, how can I preprocess UTF-8 encoded text within the range of {0,1} or alternatively between the range {-1,1} before it is…
Ælex
  • 14,432
  • 20
  • 88
  • 129
31
votes
5 answers

React Native multi line TextInput, text is centered

So when using, text input with multiline=true, I have this issue where the text is vertically centered instead of being pushed to the top. This issue happens on both ios and android, except android has another issue where, when multiple lines are…
Red
  • 393
  • 2
  • 5
  • 9
31
votes
6 answers

How to create TextArea as input in a Shiny webapp in R?

I am trying to create simple webapp where I want to take in multiline input from user using HTML textarea control. Is there any out of the box way of creating such an input control in Shiny? Help page of textInput doesn't show much options…
CHP
  • 16,981
  • 4
  • 38
  • 57
1
2 3
90 91