1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

start documenting html5 invalid form fields

This commit is contained in:
Mark Otto 2012-11-04 19:41:41 -08:00
parent 7e6cc0bf7e
commit 823b5accd3
2 changed files with 18 additions and 0 deletions

View file

@ -1569,6 +1569,15 @@ For example, <code><section></code> should be wrapped as inlin
</form>
<pre class="prettyprint linenums">
&lt;input class="input-xlarge" id="focusedInput" type="text" value="This is focused..."&gt;
</pre>
<h3>Required inputs</h3>
<p>Style inputs via default browser functionality with <code>:valid</code>.</p>
<form class="bs-docs-example form-inline">
<input class="span4" type="text" value="Required input" required>
</form>
<pre class="prettyprint linenums">
&lt;input class="span4" type="text" placeholder="Required input" required&gt;
</pre>
<h3>Disabled inputs</h3>

View file

@ -1506,6 +1506,15 @@
</form>
<pre class="prettyprint linenums">
&lt;input class="input-xlarge" id="focusedInput" type="text" value="{{_i}}This is focused...{{/i}}"&gt;
</pre>
<h3>{{_i}}Required inputs{{/i}}</h3>
<p>{{_i}}Style inputs via default browser functionality with <code>:valid</code>.{{/i}}</p>
<form class="bs-docs-example form-inline">
<input class="span4" type="text" value="{{_i}}Required input{{/i}}" required>
</form>
<pre class="prettyprint linenums">
&lt;input class="span4" type="text" placeholder="{{_i}}Required input{{/i}}" required&gt;
</pre>
<h3>{{_i}}Disabled inputs{{/i}}</h3>