<input type="text" id="txtFileName" disabled="true" size="40" style="border: solid 1px; background-color: #FFFFFF;" />

Input box types

<input type="button">
<input type="checkbox">
<input type="color">
<input type="date">
<input type="datetime-local">
<input type="email">
<input type="file">
<input type="hidden">
<input type="image">
<input type="month">
<input type="number">
<input type="password">
<input type="radio">
<input type="range">
<input type="reset">
<input type="search">
<input type="submit">
<input type="tel">
<input type="text">
<input type="time">
<input type="url">
<input type="week">
<input type="text" name="MyName" value="Default Name"  />
<input type="number" name="MyName" min="1" max="5" value="" >

Specifying A Value

<input type="text" value="1234" />

Automatically Submit On Enter Key Pressed

<form action="http://www.mydomain.com/some_file.php" method="POST">
  <input type="text" name="Text1" size="40" style="width: 30px" onkeydown="if (event.keyCode == 13) { this.form.submit(); return false; }" />	<!-- Submit form on Enter key pressed -->

Read Only

<input type="text" name="some_name" value="some_value" size=10 readonly>

Password Entry

“password” will cause characters to be shown as dots or stars

  <input type="password" name="psw">

Max Length

We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.


Your email address will not be published.