jQuery validation without plugins
<p>Is it possible to implement the jQuery validation without using any plugins for this..</p>

<p>In my asp.net application, am using asp:textboxes to receive the inputs but the button is not an asp control, am calling the jQuery file at the button click event...I need to validate the inputs without using any plugins.....how can I achieve this....</p>

<p>I tried like put the requiredfield validator after textbox like,</p>

<pre><code>&lt;asp:TextBox ID="txtName" runat="server" ClientIDMode="Static"&gt;&lt;/asp:TextBox&gt;
&lt;div&gt;
   &lt;asp:RequiredFieldValidator ID="reqValName" ControlToValidate="txtName" 
        runat="server" CssClass="validation" ErrorMessage="*Required"&gt;
   &lt;/asp:RequiredFieldValidator&gt;
&lt;/div&gt;
</code></pre>

<p>and in my js file am checking the validation like,</p>

<pre><code>$(function () {
$("#txtName").change(function () {
    if ($("#txtName").val() == "") {
        $(".reqValName").val();
    }
});
</code></pre>

<p>its working when I try deleting the value in the textbox(making it as empty), if I leave from here it shows the "*Required" error....fine....I tried with blur function, its not working and also, I need to stop the button click event before clearing this validation errors, in server side if it is asp button, I never worried bout this, but here it is html, I dunno how to do, and also how can I use regular expression for this textbox.....</p>
