for single digit numric value elements, couldnt find the duplicates in jQuery
<p>To find the duplicates, this is my extended function.</p>

<pre><code>jQuery.extend(jQuery.expr[":"],{
    duplicateValues:function(element){
        var return_val = false;
        jQuery(element).each(function(){
             if(jQuery(element+"[value='"+jQuery(this).val()+"']").length &gt; 1){
                return_val = true;
                return false;
             }   
        });
        return return_val;
    }
});
</code></pre>

<p>and this is called as</p>

<pre><code>if(jQuery('.option_text:duplicateValues').length &gt; 0){
    alert("Duplicate in answer options");
    return false;
}
</code></pre>

<p>This is working fine for all alpha numeric and strings. If only single numeric value is given in the text box, without any duplication, it is showing the alert for duplication.</p>

<p>it is working fine for the single characters too.</p>

<p>Thanks in advance</p>
