Skip to content

Instantly share code, notes, and snippets.

@posiczko
Created November 7, 2011 04:30
Show Gist options
  • Save posiczko/1344182 to your computer and use it in GitHub Desktop.
Save posiczko/1344182 to your computer and use it in GitHub Desktop.
Simplified html describing distinct() issue in validity
<html>
<head>
<link type="text/css" rel="stylesheet" media="screen" href="jquery.validity.css"></link>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.validity.js"></script>
</head>
<body>
<!--
$.validity.setup({ outputMode:"label" });
$.validity.start();
$('input').distinct("Members must be unique.");
$.validity.end();
-->
<div class="validity-summary-container">
<ul></ul>
</div>
<form>
<input size="30" id="m1" type="text" value="111" />
<br/>
<br/>
<input size="30" id="m2" type="text" value="111" />
<br/>
<br/>
<input size="30" id="m3" type="text" value="333" />
<br/>
<br/>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment