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.
AttributeDescription
NameThis attribute specifies the name of the object through which it can be referenced.
ValueThis is used to specify the value of the text field.(optional)
SizeWidth of the text field.(optional)
MaxlengthUsed to specify the maximum number of characters that can be entered into the textbox.
Autocomplete New in HTML5Input element should have autocomplete .
autofocus New in HTML5Focus ( crusher inside ) the input text box by default .
placeholder New in HTML5Hint , help or about the input requirment can be given to user.
Keeping the crusher at textbox by default

Example:

<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

Subscribe to our mailing list

* indicates required
Subscribe to plus2net
Your Rating


Google+

Post Comment This is for short comments only. Use the forum for more discussions.




Subscribe to our mailing list

* indicates required
Subscribe to plus2net
HTML . MySQL. PHP. JavaScript. ASP. Photoshop. Articles. FORUM Contact us
©2000-2017 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer