Enable submit button if text entered with jQuery

[javascript]
$(‘#username’).keyup(function() {
$(‘#submit’).attr(‘disabled’, !$(‘#username’).val());
});
[/javascript]

Snippet : Source

Leave a Reply