using jquery for validation
<p>I'm pretty much new to jquery. I've been trying to do validations where i check if a textbox length is greater than 4.</p>

<p>So, this is what i did:  </p>

<pre><code>   $(document).ready(function () {

    $('#tbstreet1').blur(isValid);
                        });
   function isValid()
{
    Boolean isvalid;
   var street1Length = $("#tbstreet1").val().length;

   alert(street1Length);
     if(myLength &gt;4)
     {
         isvalid= true;
        ActivateSave()
     }


}
function ActivateSave()
    {

   $("#btn_save").attr("Enabled",true);
   }
</code></pre>

<p>This is my aspx page:</p>

<pre><code>   &lt;asp:Label runat="server" ID="street1" Text="Street1" O&gt;&lt;/asp:Label&gt; 
  &lt;asp:TextBox ID="tbstreet1" runat="server" CausesValidation="true"  &gt;&lt;/asp:TextBox&gt;

 &lt;asp:Button ID="btn_save" runat="server" Text="Save" Enabled="false" /&gt;
</code></pre>

<p>I even have script source in my .net page</p>

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

<p>But the thing has been that how do i call the javascript function from here? as i 'm pretty sure that my javascript is not getting called. Can u help me?</p>
