attributes of text field element

The text field element has attributes other than the name and type.

disabled - It is use to disable the text field. The user cannot select the text field and the content of the field cannot be send to the server.
maxlength - It is used to define the maximum number of characters that can be typed. The possible values are positive integers.
readonly - It is used to prevent the user from changing the content of the text field.
size - It is used to define the length of the text field in characters. if the size is less than maxlength, a horizontal scroll bar may appear. The possible values are positive integers.
value - to set the initial value or default, value of the text field; the possible values are double quoted strings.
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +