implement jquery Plugin add method Validation
<p>I have a problem to use jquery Plugin/Validation.</p>

<p>I want to add a method and follow the documentation but I think I still missing some thing.</p>

<p>First I add the method but I think I have a problem to implement it.</p>

<p>please check my code and advice me.</p>

<pre><code>   &lt;script src="js/jquery-1.4.1.js" type="text/javascript"&gt;&lt;/script&gt;

    &lt;script src="js/jquery.validate.js" type="text/javascript"&gt;&lt;/script&gt;


    &lt;script type="text/javascript"&gt;



        $(document).ready(function() {

        jQuery.validator.addMethod("domain", function(value, element) {
            return this.optional(element) || /^http:\/\/yahoo.com/.test(value);
        }, "Please specify the correct domain for your documents");



            $("#aspForm").validate();
        });

   &lt;asp:TextBox ID="TextBox1" runat="server" CssClass="domain" &gt;&lt;/asp:TextBox&gt;


&lt;/script&gt;
</code></pre>
