How do I check through <input>(x5) and only submit when they don't have a class, using JQuery?
<p>I have this piece of code I've been working on but there's a problem, here's the code:</p>

<pre><code>$('form input').keyup(function () {
    if($(this).hasClass('field-error')){

        $('.btn').addClass('no-submit').removeClass('btn');
        $('.error-notify').show();          
    }
    else{

        $('.no-submit').addClass('btn').removeClass('no-submit');
        $('.error-notify').hide();

        $('.btn').click(function(){ 
            $(this).parent().find('form').submit();
        });
    }
}); 
</code></pre>

<p>What I'd like to happen is..when all form inputs(x5) have been checked and there are no instances of any <code>form input</code>s having the '.field-error' class the then <code>.btn</code> class becomes clickable and the form can be submitted</p>

<p>If you'd like me to further make clear what I mean, just let me know.</p>

<p>Any help is greatly appreciated, Thanks</p>
