Created
June 10, 2012 16:31
-
-
Save gunnarbittersmann/2906510 to your computer and use it in GitHub Desktop.
input @pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* input @pattern | |
*/ | |
input:invalid { background: #FCC } | |
input:valid { background: #CFC } | |
dt { margin: 2em 0 0.5em } | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dl> | |
<dt>@required</dt> | |
<dd><input required="required"/></dd> | |
<dt>@pattern="KG.*"</dt> | |
<dd><input required="required" pattern="KG.*"/></dd> | |
<dt>@pattern="KG\d{3}[AJM]"</dt> | |
<dd><input required="required" pattern="KG\d{3}[AJM]"/></dd> | |
<dt>KG ouside, input case-insensitive</dt> | |
<dd>KG<input required="required" pattern="\d{3}[AJMajm]"/></dd> | |
</dl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment