Top "Input" questions

Input is usually related to user input, i.e., to the data that user supplies to a running application.

How can I limit possible inputs in a HTML5 "number" element?

For <input type="number"> element, maxlength is not working. How can I restrict the maxlength for that number …

html input numbers max
Is there a float input type in HTML5?

According to html5.org, the "number" input type's "value attribute, if specified and not empty, must have a value that …

html input floating-point
input() error - NameError: name '...' is not defined

I am getting an error when I try to run this simple script: input_variable = input ("Enter your name: ") print ("…

python python-2.7 input nameerror
How to make HTML input tag only accept numerical values?

I need to make sure that a certain <input> field only takes numbers as value. The input is …

html input numbers validating
Set Value of Input Using Javascript Function

I'm currently using a YUI gadget. I also do have a Javascript function to validate the output that comes from …

javascript input yui validation
How to remove the border highlight on an input text element

When an HTML element is 'focused' (currently selected/tabbed into), many browsers (at least Safari and Chrome) will put a …

css input safari webkit border
Put icon inside input element in a form

How do I put an icon inside a form's input element? Live version at: Tidal Force theme

html css forms input icons
Can I hide the HTML5 number input’s spin box?

Is there a consistent way across browsers to hide the new spin boxes that some browsers (such as Chrome) render …

javascript css html input numbers
How to 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.)? user_input = input("Enter …

python input types