I am using Jquery to check if an input has a specific value and if it does have that value it will enable the submit button. The problem is I set the value to 4 but if 44 (or anything that begins with 4) is entered it still enables the button. Also once 4 is entered it can be changed to anything and the button remains enabled.
What I would like it to do is only change to enabled if the value is 4 and if the value is changed then the the submit button should be disabled.
Jquery
$(document).ready(function() {
    $('#check').keyup(function() {
        if($(this).val() === '4') {
            $('.submit').removeAttr('disabled');
        }
    });
});
HTML
<input id="check" type="text" name="check" />
<input type="submit" name="submit" class="submit" disabled="disabled">


