Answers for "disabling submit button until all fields have values"

0

disabling submit button until all fields have values

$(function () {
    $('#submits').attr('disabled', true);
    $('#initial_5').change(function () {
        if ($('#initial_1').val() != '' && $('#initial_2').val() != '' && $('#initial_3').val() != '' && $('#initial_4').val() != '' && $('#initial_5').val() != '') {
            $('#submits').attr('disabled', false);
        } else {
            $('#submits').attr('disabled', true);
        }
    });
 });
Posted by: Guest on March-18-2020

Code answers related to "disabling submit button until all fields have values"

Code answers related to "Javascript"

Browse Popular Code Answers by Language