tagged [input]

How to change font-color for disabled input?

How to change font-color for disabled input? I need to change the style for a disabled input element in CSS. How I can do this for Internet Explorer?

18 Jun at 15:9

How can I sanitize user input with PHP?

How can I sanitize user input with PHP? Is there a catchall function somewhere that works well for sanitizing user input for SQL injection and XSS attacks, while still allowing certain types of HTML t...

How to set default value to the input[type="date"]

How to set default value to the input[type="date"] I have tried ([JSFiddle](http://jsfiddle.net/VD2QH/2/)): but it doesn't work, how can I set the default value?

17 Jul at 10:17

Getting Keyboard Input

Getting Keyboard Input How do I get simple keyboard input (an integer) from the user in the console in Java? I accomplished this using the `java.io.*` stuff, but it says it is deprecated. How should I...

15 May at 02:58

Values of disabled inputs will not be submitted

Values of disabled inputs will not be submitted This is what I found by Firebug in Firefox. Is it the same in other browsers? If so, what's the reason for this?

PHP "php://input" vs $_POST

PHP "php://input" vs $_POST I have been directed to use the method `php://input` instead of `$_POST` when interacting with Ajax requests from JQuery. What I do not understand is the benefits of using ...

24 Jul at 02:1

jQuery 'input' event

jQuery 'input' event I've never heard of an event in jQuery called `input` till I saw this [jsfiddle](http://jsfiddle.net/philfreo/MqM76/). Do you know why it's working? Is it an alias for `keyup` or ...

12 Sep at 07:27

Taking input from a joystick with C# .NET

Taking input from a joystick with C# .NET I searched around on Google for this, but the only things I came up with were outdated and did not work. Does anyone have any information on how to get joysti...

How to get the HTML's input element of "file" type to only accept pdf files?

How to get the HTML's input element of "file" type to only accept pdf files? is there any way that html element file only accept PDF files and when we browse its only show PDF files... Thanks

10 Oct at 15:22

How to set date format in HTML date input tag?

How to set date format in HTML date input tag? I am wondering whether it is possible to set the date format in the html `` tag... Currently it is yyyy-mm-dd, while I need it in the dd-mm-yyyy format.

29 Oct at 11:8

How do I make an input field accept only letters in javaScript?

How do I make an input field accept only letters in javaScript? This is what I've written it for an empty string, now i need it to accept only letters?

9 May at 04:23

Disable Auto Zoom in Input "Text" tag - Safari on iPhone

Disable Auto Zoom in Input "Text" tag - Safari on iPhone I made an HTML page that has an `` tag with `type="text"`. When I click on it using Safari on iPhone, the page becomes larger (auto zoom). Does...

Windows.Form not fire keyDown event

Windows.Form not fire keyDown event `onKeyDown()` is never called. Any idea why? : This works in release mode!? I guess it must be visual studio debugger

28 Apr at 08:43

How to get input from user at runtime

How to get input from user at runtime I want to take runtime input from user in Oracle 10g PL/SQL blocks (i.e. interactive communication with user). Is it possible? this code gives error as > & can't ...

12 Dec at 10:58

What's a Good Javascript Time Picker?

What's a Good Javascript Time Picker? What's a good time picker for jquery or standalone js? I would like something like google uses in their calendar where it has a drop down of common times in 15min...

10 Sep at 04:37

How to detect when cancel is clicked on file input?

How to detect when cancel is clicked on file input? How can I detect when the user cancels a file input using an html file input? onChange lets me detect when they choose a file, but I would also like...

7 Jan at 17:46

How to add static text inside an input form

How to add static text inside an input form How can I put this static text in an input form? It's there all the time. ![Enter image description here](https://i.stack.imgur.com/Xxsnr.jpg) This is my co...

9 Jul at 22:52

Get text from Input field in Unity3D with C#

Get text from Input field in Unity3D with C# I'm trying to get a text inside an inputField in `Unity3D` with `C#`. I've placed an inputField in my editor, renamed and tagged in: . My question is: How ...

24 May at 21:8

What is the easiest way to get an int in a console app?

What is the easiest way to get an int in a console app? I want to process user input as an integer, but it seems as though C has no way to get an int from stdin. Is there a function to do this? How wo...

14 May at 19:42

Put icon inside input element in a form

Put icon inside input element in a form How do I put an icon inside a form's input element? ![Screenshot of a web form with three inputs which have icons in them](https://i.stack.imgur.com/V0Tjp.png) ...

23 Jun at 07:52

Delete default value of an input text on click

Delete default value of an input text on click I have an input text: I want to put a default value like "What's your programming question? be specific." in Stack Overflow, and when the user click on i...

24 Jun at 14:40

Limit number of characters allowed in form input text field

Limit number of characters allowed in form input text field How do I limit or restrict the user to only enter a maximum of five characters in the textbox? Below is the input field as part of my form: ...

10 Jun at 05:20

How to hide element label by element id in CSS?

How to hide element label by element id in CSS? Let's say I've got this code This will hide the input: How do I hide the label?

1 Jun at 15:19

How can I check if string input is a number?

How can I check if string input is a number? How do I check if a user's string input is a number (e.g., `-1`, `0`, `1`, etc.)? The above won't work since `input` always returns a string.

30 Jan at 23:49

Resource leak: 'in' is never closed

Resource leak: 'in' is never closed Why does Eclipse give me the warming "Resource leak: 'in' is never closed" in the following code? ``` public void readShapeData() { Scanner in = new Scanner(Sys...