/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('#username').keyup(function() { $('#submit').attr('disabled', !$('#username').val()); });
URL: http://cakebaker.42dh.com/2009/01/13/enabling-submit-button-if-text-entered/