I need your help, in my question. I have textarea and button in popup, and with function :

```
$(document).ready(function() {
    $('input[type="submit"]').attr('disabled', false);

    $('input[type="text"],textarea').on('keyup',function() {
        var textarea_value = $("#id_get_post_description2").val();
        var text_value = $('input[name="textField"]').val();

        if(textarea_value != '' && text_value != '')
            $('input[type="submit"]').attr('disabled' , false);
        else
            $('input[type="submit"]').attr('disabled' , true);
    });
});

```

i'm checking the value elements in textarea and if 0 disable button.

But i have bug, when i call this function in other popup (before there i'm clear textarea and having disable button) my button disable, by default.
How i can fix this?

Screenshot with stage

<http://www.ex.ua/800076465918>