These are the most important attributes when you use the Input object with the type specified as 'text' or 'password.'
Causes the textbox to appear in a disabled state. This state is marked by muted coloring and by no response to clicking.
Markup |
Copy Code |
---|---|
<input id="textbox" type="text" disabled/> |
Sets the number of characters the user can enter in the textbox. Additional characters are ignored.
Markup |
Copy Code |
---|---|
<input id="textbox" type="password" maxlength=7/> |
Allows the textbox to display text, but does not allow editing by the user.
Markup |
Copy Code |
---|---|
<input id="textbox" type="text" readonly/> |
Sets the width of the textbox in characters.
Default Value: 20
Markup |
Copy Code |
---|---|
<input id="textbox" type="password" size=40/> |
Set to "text" to display the textbox input widget, or to "password" to hide text input.
Markup |
Copy Code |
---|---|
<label><input type="password" id="textbox"/> |