Questions tagged [inputbox]

The tag specifies an input field where the user can enter data. elements are used within a

element to declare input controls that allow users to input data. An input field can vary in many ways, depending on the type attribute.

The most important form element is the element.

The element is used to select user information.

An element can vary in many ways, depending on the type attribute. An element can be of type text field, checkbox, password, radio button, submit button, and more.

<input type="text"> defines a one-line input field that a user can enter text into.

<input type="password"> defines a password field.

<input type="radio"> defines a radio button: Radio buttons let a user select ONLY ONE of a limited number of choices.

<input type="checkbox"> defines a checkbox: Checkboxes let a user select ZERO or MORE options of a limited number of choices.

<input type="submit"> defines a submit button.

These are types of input box, for more details of its attributes and properties please refer w3c

475 questions
49
votes
14 answers

Input boxes with transparent background are not clickable in IE8

I have an absolutely positioned input box in a form. The input box has transparent background: .form-page input[type="text"] { border: none; background-color: transparent; /* Other stuff: font-weight, font-size */ } Surprisingly, I…
Viliam
  • 4,404
  • 3
  • 28
  • 30
20
votes
2 answers

How do I make a HTML input box default text remove AFTER starting to type

Say I have an input box with default text "name" in it. I would like for the user to click the box, the text stays in the box until the user starts to type. I am not looking for code to clear the input box after focusing it. Thanks!
Jordan Clifton
  • 321
  • 1
  • 3
  • 10
18
votes
4 answers

how can the textbox width be reduced?

Can I reduce the textbox width without using classes?
svk
  • 4,513
  • 18
  • 63
  • 100
17
votes
6 answers

Delphi InputBox for password entry?

Inputbox: answer:=Inputbox('a','b','c'); works good, but I'm looking for a masked one, like a password box where you only see little stars instead of the typed characters.
Arthur
  • 3,376
  • 11
  • 43
  • 70
16
votes
8 answers

Prompting a user with an input box? [C++]

My goal is to simply use a pop-up box to ask the user for an input. I've searched around quite a bit and pretty much all the results say that creating a messageBox is really easy: MessageBox (NULL, "Hello World" , "Hello", MB_OKCANCEL); But that…
Ryan
  • 3,127
  • 6
  • 32
  • 48
15
votes
3 answers

How to add reference to Microsoft.VisualBasic.dll?

using Microsoft.VisualBasic; Microsoft.VisualBasic.Interaction.InputBox("Favourite RPG?", "Game", "Cool!"); So what this does is basically ask the user their favourite RPG. Then it displays the default value. I know this is a small example but my…
puretppc
  • 3,232
  • 8
  • 38
  • 65
14
votes
1 answer

Styling HTML5 number input (spin box) in Chrome

Chrome recently updated its input element styles. I really like the number input type, but their new style gives us rounded buttons that don't fit neatly into square input boxes. I've put in many attempts to get these inputs to change, but they…
Vael Victus
  • 3,966
  • 7
  • 34
  • 55
12
votes
6 answers

Handle cancellation of InputBox to select range

I have the following piece of code: dim selectRange as Range Set selectRange = Application.InputBox("Select your range", "Hello", , , , , , 8) When a user chooses Cancel the InputBox prompt, it returns error of Object not set. I have tried to use a…
Jeremy Newton
  • 131
  • 1
  • 1
  • 4
11
votes
2 answers

How to delegate ngFocus/ngBlur to directive's template element?

I'm trying to create a custom component (directive) which is composed of an box and a [-] and [+] buttons. Currently, the example below only implements the input box. So, say I have the following HTML for my directive:
rfgamaral
  • 16,546
  • 57
  • 163
  • 275
10
votes
2 answers

How to distinguish InputBox Cancel from OK button?

Quick question: I'm using a Microsoft.VisualBasic.Interaction.InputBox in my C# code to allow users to add websites to a list, but I don't want them to enter an empty string so I give an error popup in case that happens. However, the error will also…
Voidpaw
  • 910
  • 1
  • 5
  • 18
6
votes
2 answers

Detecting Cancel being pressed in a VB6 InputBox

I'm building a VB application that accepts numbers in the beginning. I want to be able to exit if the user presses the cancel button in any of the input boxes. The code is : Private Sub Command1_Click() Dim a, b, c, d As Integer Dim response As…
Bharat Kashyap
  • 73
  • 1
  • 2
  • 5
6
votes
3 answers

Overcome VBA InputBox Character Limit

The current function I use to collect text InputBox can't accept more than 255 characters apparently, and I need to be able to collect more than that? Is there a parameter or different function I can use to increase this limit?
Ryan B
  • 320
  • 2
  • 6
  • 18
6
votes
1 answer

HTML: is input box default/calculated content height different across browsers

Let's say I have the following code .username { font-size: 30px; padding-top: 8px; padding-bottom: 8px; border: 2px solid #E0E0E0; } See live demo on…
Adriano
  • 19,463
  • 19
  • 103
  • 140
6
votes
2 answers

Turn integer into money format while typing in an input box

I'm going to try and get this across as clearly as I can. I need an input box to read an integer, for example "12345" and turn it into a money format, example: $123.45. This needs to take place while the user is typing.
user1661548
5
votes
1 answer

How to change the input focus on a tablet with js?

I'm using the JavaScript below to change the focus to the next input in a form when the max-length of the input is reached. It works well on a desktop but it does not work on a tablet. When the current input loses the focus, the virtual keyboard…
Danja
  • 51
  • 1
  • 3
1
2 3
31 32