Text Field of HTML form
<input type="text" name="Name" value="default_value">
Text fields are data entry fields which takes small amount of data from the user ( textarea is used for large data ). This is one of the most widely used control of a WebForm.
• Keeping the cursor at textbox by default
|Name||This attribute specifies the name of the object through which it can be referenced.|
|Value||This is used to specify the value of the text field.(optional)|
|Size||Width of the text field.(optional)|
|Maxlength||Used to specify the maximum number of characters that can be entered into the textbox. |
|Autocomplete ||Input element should have autocomplete . |
|autofocus ||Focus ( crusher inside ) the input text box by default .
|placeholder ||Hint , help or about the input requirment can be given to user.
<input type="text" name="txtbox" value="Simple Text">
This places a text field(single line text area) within the HTML form, which can be referenced by using its name "txtbox" and whose value is "Simple Text". Here is an example
How text box is managed by JQuery
TextArea to enter more text
This article is written by plus2net.com team.