jQuery errorContainer practice
<p>I'm trying to be able to place the error message when using  jQuery validation to a asp.net label if the textbox is empty.</p>

<p>please advice how to modify my code to get that!!</p>

<p>here is my code:</p>

<pre><code>&lt;asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"&gt;


    &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() {
            $("#aspnetForm").validate({
            errorContainer: "#&lt;%=TextBox1 %&gt;",
            errorLabelContainer: "#&lt;%=TextBox1 %&gt; #&lt;%=Label1 %&gt;",
                wrapper: "li", debug: true,
                submitHandler: function() { alert("Submitted!") }
            })
        });


    &lt;/script&gt;

&lt;/asp:Content&gt;
&lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"&gt;
&lt;/asp:Content&gt;
&lt;asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server"&gt;

    &lt;p style="height: 313px"&gt;

        &lt;asp:TextBox ID="TextBox1" runat="server" class="required"&gt;&lt;/asp:TextBox&gt;
        &lt;asp:Label ID="Label1" runat="server" Text="Label"  &gt;&lt;/asp:Label&gt;  

    &lt;/p&gt;




    &lt;/asp:Content&gt;
</code></pre>
