Jquery Validation OnBlur of textbox
<p>Javascript: </p>

<pre><code>&lt;script type="text/javascript"&gt;

    function checkdata() {

        $("#TextBoxesGroup :input").each(function () {
            if (!$(this).val()) {
                alert(this.val()+":Dis");
                $("#addButton").attr("disabled", "disabled");
            }
            else {
                alert(this.val() + ":Ena");
                $("#addButton").removeAttr("disabled");
            }
        });
    }

    $(document).ready(function () {
        $("#addButton").attr("disabled", "disabled");
        $("#TextBoxesGroup :input").each(function () {
            $(this).blur(function () {
                checkdata();
            });
        });
    });
&lt;/script&gt;
</code></pre>

<p>Html</p>

<pre><code>&lt;div id='TextBoxesGroup'&gt;
    &lt;div style="float: left; width: 625px;"&gt;
        &lt;div&gt;
        &lt;input type="text" name="answer" class="ahsan" /&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;div style="clear: both;"&gt;
&lt;/div&gt;
&lt;div&gt;
    &lt;input type="button" value="Add New Row" class="qa-adbtn" id='addButton' /&gt;
&lt;/div&gt;
</code></pre>

<p>Now the thing i want to do is that if user enter something in textbox(ahsan) .then add button enabled and if there is nothing in textbox onblur then add button automatically goes disabled</p>
