Created
January 21, 2016 11:48
-
-
Save danieltl/7f690156f1998c044d18 to your computer and use it in GitHub Desktop.
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
<link rel="stylesheet" type="text/css" href="semantic/dist/semantic.min.css"> | |
<script src="semantic/dist/semantic.min.js"> | |
$('.ui.form') | |
.form( | |
fields: { | |
name: { | |
identifier : 'special-name', | |
rules: [ | |
{ | |
type : 'empty' | |
} | |
] | |
} | |
} | |
}) | |
; | |
</script> | |
<form class="ui form segment error"> | |
<div class="field error"> | |
<label>Special Field</label> | |
<input name="special-name" type="text"> | |
</div> | |
<div class="ui blue submit button">Submit</div> | |
<div class="ui error message"><ul class="list"><li>Special Field must have a value</li></ul></div> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment