JQUERY outline textfield to show error
<p>I have a <code>textfield</code> and at the moment i disable the submit button when the <code>textfield</code> does not <code>hold three charactes</code>. What i want to do now is also outline the <code>textfield</code> <strong>bold red</strong> and still have the <code>submit</code> button disabled, however i cannot seem to be able to outline the <code>textfield</code> and disable the submit <code>button</code> at the same time.</p>

<p>my code for disabling the submit button is as follows is it possible to be able to outline the <code>textfield</code> when the <code>length is &lt; 3</code> in this function to? </p>

<p>thankfull for any help  </p>

<pre><code>$(function() {

        $('input[name="updateMessage"]').attr('disabled','disabled');
        $('input[name="selectMessageForUpdate"]').keyup(function(){
            if($('input[name="selectMessageForUpdate"]').val().length &lt; 3)
            {
                $('input[name="updateMessage"]').attr('disabled','disabled');
            }
            else
            {
                $('input[name="updateMessage"]').removeAttr('disabled');
            }
        });

    });
</code></pre>
