Skip to content

Instantly share code, notes, and snippets.

@trikitrok
Last active August 29, 2015 14:04
<!DOCTYPE html>
<html>
<body>
<form id="exampleForm" action="" autocomplete="on">
First name:
<input type="text" name="fname" required
data-rule-palindrome="true"
data-msg-palindrome="Please introduce a palindrome"><br>
Last name:
<input type="text" name="lname" required><br>
<input type="submit">
</form>
<script
src="http://code.jquery.com/jquery-1.11.1.min.js">
</script>
<script
src="http://jqueryvalidation.org/files/dist/jquery.validate.min.js">
</script>
<script
src="validation.js">
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment