showing results for - "disabling submit button until all fields have values"
Rafaela
22 May 2016
1$(function () {
2    $('#submits').attr('disabled', true);
3    $('#initial_5').change(function () {
4        if ($('#initial_1').val() != '' && $('#initial_2').val() != '' && $('#initial_3').val() != '' && $('#initial_4').val() != '' && $('#initial_5').val() != '') {
5            $('#submits').attr('disabled', false);
6        } else {
7            $('#submits').attr('disabled', true);
8        }
9    });
10 });