Need help with jQuery validation for a select list
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3824608/jquery-custom-validation-method-issue">jQuery custom validation method issue</a>  </p>
</blockquote>



<p>I have a select list #technology. It's default value is "0" due to back end payment processor. I need a validation rule (using jquery.validate.js) that makes it return false if it's value is "0" but return true for any other value. What I am trying isn't working.</p>

<pre><code>&lt;script type="text/javascript"&gt;
    $(document).ready(function() {
        $.validator.addMethod(
            "SelectTechnology",
            function(value, element) {
                //var selectedCountry = $('#Country').val();
                if ($("#singleTech").val() === '0'){
                    return false;
                } else return true;
            },
            "Please Select a Technology"
        );
        var validator = $("#SinglePmnt").validate({
            rules: {
                    technology: {
                        SelectTechnology: true
                    }
            },
            errorElement: "span",
            errorPlacement: function(error, element) {
                error.appendTo(element.parent("td"));
            }
        });
    });
&lt;/script&gt;
</code></pre>

<p>It doesn't clear the error if you hit submit with the default value selected then change it.
thanks</p>
