Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[e] (0) readonly='' example.
git-svn-id: http://svn.whatwg.org/webapps@3816 340c8d12-0b0e-0410-8428-c7bf67bfef74
- Loading branch information
|
||
</div> | ||
|
||
<div class=example> | ||
|
||
<p>In the following example, the existing product identifiers | ||
cannot be modified, but they are still displayed as part of the | ||
form, for consistency with the row representing a new product | ||
(where the identifier is not yet filled in).</p> | ||
|
||
<pre><form action="products.cgi" method=post enctype="multipart/formdata"> | ||
<table> | ||
<tr> <th> Product ID <th> Product name <th> Price <th> Action | ||
<tr> | ||
<td> <input readonly name="1.pid" value="H412"> | ||
<td> <input required name="1.pname" value="Floor lamp Ulke"> | ||
<td> $<input required type=number min=0 step=0.01 name="1.pprice" value="49.99"> | ||
<td> <button formnovalidate name="action" value="delete:1">Delete</button> | ||
<tr> | ||
<td> <input readonly name="2.pid" value="FG28"> | ||
<td> <input required name="2.pname" value="Table lamp Ulke"> | ||
<td> $<input required type=number min=0 step=0.01 name="2.pprice" value="24.99"> | ||
<td> <button formnovalidate name="action" value="delete:2">Delete</button> | ||
<tr> | ||
<td> <input required name="3.pid" value="" pattern="[A-Z0-9]+"> | ||
<td> <input required name="3.pname" value=""> | ||
<td> $<input required type=number min=0 step=0.01 name="3.pprice" value=""> | ||
<td> <button formnovalidate name="action" value="delete:3">Delete</button> | ||
</table> | ||
<p> <button formnovalidate name="action" value="add">Add</button> </p> | ||
<p> <button name="action" value="update">Save</button> </p> | ||
</form></pre> | ||
|
||
</div> | ||
|
||
|
||
|
||
<h6 id=the-size-attribute><span class=secno>4.10.4.2.4 </span>The <code title=attr-input-size><a href=#attr-input-size>size</a></code> attribute</h6> |
|
||
</div> | ||
|
||
<div class="example"> | ||
|
||
<p>In the following example, the existing product identifiers | ||
cannot be modified, but they are still displayed as part of the | ||
form, for consistency with the row representing a new product | ||
(where the identifier is not yet filled in).</p> | ||
|
||
<pre><form action="products.cgi" method=post enctype="multipart/formdata"> | ||
<table> | ||
<tr> <th> Product ID <th> Product name <th> Price <th> Action | ||
<tr> | ||
<td> <input readonly name="1.pid" value="H412"> | ||
<td> <input required name="1.pname" value="Floor lamp Ulke"> | ||
<td> $<input required type=number min=0 step=0.01 name="1.pprice" value="49.99"> | ||
<td> <button formnovalidate name="action" value="delete:1">Delete</button> | ||
<tr> | ||
<td> <input readonly name="2.pid" value="FG28"> | ||
<td> <input required name="2.pname" value="Table lamp Ulke"> | ||
<td> $<input required type=number min=0 step=0.01 name="2.pprice" value="24.99"> | ||
<td> <button formnovalidate name="action" value="delete:2">Delete</button> | ||
<tr> | ||
<td> <input required name="3.pid" value="" pattern="[A-Z0-9]+"> | ||
<td> <input required name="3.pname" value=""> | ||
<td> $<input required type=number min=0 step=0.01 name="3.pprice" value=""> | ||
<td> <button formnovalidate name="action" value="delete:3">Delete</button> | ||
</table> | ||
<p> <button formnovalidate name="action" value="add">Add</button> </p> | ||
<p> <button name="action" value="update">Save</button> </p> | ||
</form></pre> | ||
|
||
</div> | ||
|
||
|
||
|
||
<h6>The <code title="attr-input-size">size</code> attribute</h6> |