How to determine that the input is not empty without forcing user to change the input – Jquery
So if someone needs to disable a submit button unless the user input is filled, he needs to do this: $(function () { $('#login').attr('disabled', true); $('#userinput').change(function () { if ($('#userinput').val() != '') { $('#login').attr('disabled', false); } else { $('#login').attr('disabled', true);…