Another suggestion will be to get the length of the field:

var t = ($('#post_name').val()).length;
        if (t > 0) {
        $("[EMAIL PROTECTED]").removeAttr('disabled');
        }

This way, you can even have the option of enforcing a minimum char length of
the field/s.

Michael


> It seems that submit method is not what this case requires because it does
> the job when user interacts with submit button (correct me please if I'm
> wrong). The button should be disabled if both field and textarea (now they
> are id's ;) do not contain any text, to prevent blank records. And the
> only
> event that might check contents of textareas and inputs seems to be
> keyup...

Reply via email to