Skip to content

Instantly share code, notes, and snippets.

@eduardolundgren
Created October 3, 2011 15:53
Show Gist options
  • Save eduardolundgren/1259431 to your computer and use it in GitHub Desktop.
Save eduardolundgren/1259431 to your computer and use it in GitHub Desktop.
<form action="" name="fm2">
<fieldset id="simpleForm">
<p>
<label class="aui-field-label" for="name.dot">Email:</label>
<input type="text" name="name.dot" id="name.dot" />
</p>
<p>
<input class="aui-button-input" type="submit" value="Submit" />
<input class="aui-button-input" type="reset" value="Reset" />
</p>
</fieldset>
</form>
<script>
var validator2 = new A.FormValidator({
boundingBox: document.fm2,
fieldContainer: 'p',
rules: {
'name.dot': {
required: true,
rangeLength: [2,50]
}
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment