Enable submit button if text entered with jQuery

$('#username').keyup(function() {
    $('#submit').attr('disabled', !$('#username').val());
});
Snippet : Source

Leave a Reply