Skip to content

Instantly share code, notes, and snippets.

@danieltl
Created January 21, 2016 11:48
Show Gist options
  • Save danieltl/7f690156f1998c044d18 to your computer and use it in GitHub Desktop.
Save danieltl/7f690156f1998c044d18 to your computer and use it in GitHub Desktop.
<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