Questions tagged [input-field]

The `` tag specifies an input element. `input` elements are used within a `form` element to declare input controls that allow users to input data. An input control can vary depending on its `type` attribute.

The <input> tag specifies an input field where the user can enter data.

<input> elements are used within a <form> element to declare input controls that allow users to input data.

An input field can vary in many ways, depending on the type attribute


Browser Support

CHROME IE FF SAFARI http://www.w3schools.com/images/compatible_safari.gif OPERA


Tips and Notes

Note: The <input> element is empty, it contains attributes only.

Tip: Use the <label> element to define labels for <input> elements.


Type Attribute Values

button

Defines a clickable button (mostly used with a JavaScript to activate a script)


checkbox

Defines a checkbox


color

Defines a color picker

HTML5


date

Defines a date control (year, month and day (no time))

HTML5


datetime-local

Defines a date and time control (year, month, day, hour, minute, second, and fraction of a second (no time zone)

HTML5


email

Defines a field for an e-mail address

HTML5


file

Defines a file-select field and a Browse... button (for file uploads)


hidden

Defines a hidden input field


image

Defines an image as the submit button


month

Defines a month and year control (no time zone)

HTML5


number

Defines a field for entering a number

HTML5


password

Defines a password field (characters are masked)


radio

Defines a radio button


range

Defines a control for entering a number whose exact value is not important (like a slider control)

HTML5


reset

Defines a reset button (resets all form values to default values)


search

Defines a text field for entering a search string

HTML5


submit

Defines a submit button


tel

Defines a field for entering a telephone number

HTML5


text

Default. Defines a single-line text field (default width is 20 characters)


time

Defines a control for entering a time (no time zone)

HTML5


url

Defines a field for entering a URL

HTML5


week

Defines a week and year control (no time zone)

HTML5


Refers From :

  1. http://www.w3schools.com/tags/tag_input.asp
  2. http://www.w3schools.com/tags/att_input_type.asp
465 questions
-1
votes
1 answer

Creating html table from input values

I have three inputs which I am creating n times My HTML:
Alexander Vasilchuk
  • 155
  • 1
  • 1
  • 12
-1
votes
1 answer

javascript clearing an input onclick, but returning original value offclick

I have an input field that has today's date appearing onload. I also have a checkbox that clears the input field onclick. However, I'm hoping to have the original date field return if a user unchecks that box. Is this possible? Checkbox…
Dave
  • 1,257
  • 2
  • 27
  • 58
-1
votes
1 answer

How can i perform a specific math calculation inside an input field and populate the result to another?

My question is pretty much simple. What i want is exactly as i described on title. I have 2 input fields (field1 and field2). When i add a number in the field1 i need to divide it with a specific number (eg 1.38) and populate the result in the…
Marsel
  • 323
  • 2
  • 11
-1
votes
1 answer

Receive POST data from login on page, but form action goes to other page

Currently I have a login script with a form that goes login.php, on this page the user can login, and the server checks his/her email & password combination. Now I have another page were users can enter a other form, called employees.php, in this…
Jummy01234
  • 13
  • 3
-1
votes
1 answer

How can I add value to filefield to an image on the screen?

I know this question is asked before but my case is different. I don't want to browse the client's computer, I want to add the "post it" button to the image he was drawing. it's a drawing web app. I don't think this needs any code from me. Thanks a…
Malek Zalfana
  • 318
  • 2
  • 11
-1
votes
1 answer

How to set the value for all elements using a variable in jQuery?

Setting the value for all input fields of a class foo is easy: $('#long .path .to .foo').val('...'); But now I need to manipulate the foo fields at multiple places, so I saved it as object as want to use it like this: foo = $('#long .path .to…
automatix
  • 14,018
  • 26
  • 105
  • 230
-1
votes
3 answers

Jquery event on input change with specific class

I need to trigger a function when an input text field with a specific CSS class is changed.
David Lacroix
  • 594
  • 1
  • 5
  • 12
-1
votes
3 answers

when jquery really updates values in input fields after ajax call?

I use jquery to retrieve via ajax request a number of values that I use to populate input fields. After retrieving these fields I need to use their new values in another ajax call, but I see that I get values that were in the field before my ajax…
kranz
  • 599
  • 1
  • 6
  • 23
-2
votes
2 answers

Unity3D with C# - Using Input field to answer question

I'm creating a unity quiz game using input fields. How can I use text from an input field to match with an answer in a c# script?
lad4414
  • 3
  • 1
-2
votes
1 answer

Convert Javascript Placeholder to lowercase letters

I am using input fields in my react website and i m displaying some placeholders in this fields. To my amazement, this placeholders come in uppercase letters regardless of how i type it in the placeholder text. What can i do to display this…
-2
votes
1 answer

Mask integer in Read-Only input field in AngularJs?

I have 2 pages.In first page i will fill my mobile number.Then,navigating to the second page I will show the mobile number in read only.In that i need to show the number like xxxxxx1234. If user clicks the edit button then,it should show all the…
Mathi
  • 139
  • 1
  • 1
  • 10
-2
votes
1 answer

How to save variables from a game in a folder?

I created a game and now I am doing a GUI (with the UI) for that game. In this GUI I have an Inputfield named "SubjectID", where the player can write his name in there. My aim would be that for each of the players there would be like a folder with…
sportente
  • 61
  • 1
  • 2
  • 8
-3
votes
1 answer

how do i get a variable value from the and use it in the script part?

Here is my code head title
Fungus
  • 1
  • 2
-3
votes
1 answer

How to assign array into a html input tag

Using Javascript I have created an array with elements. Now, I want to assign that array into HTML hidden input field to use this input field as form input field. When I submitted the form, this should go to the controller as an…
Gayalss
  • 5
  • 1
  • 6
-3
votes
1 answer

Error in PHP contact form input fields but don't know why

I have created a simple contact form using a bit of PHP code and allowed it to give errors in certain circumstances, such as if a field is empty, or the contents of the field do not match certain criteria. I have applied the standard criteria to the…
Luke
  • 17
  • 4
1 2 3
30
31