A button is disabled by default. There are two text inputs. If either are empty, the form should remain disabled. If both fields have value, the button should be enabled.
Trying this...
$(document).ready(function(){
$('#custNameNext').prop('disabled',true);
$('#customer').keyup(function(){
$(this).val($(this).val().replace(/[^\w\s]+/g, ''));
$('#custNameNext').prop('disabled', ((this.value == '') || ($('#customerCost').val() == '')) ? true : false);
});
});
... but b/c I'm in a keyup, the button does not enable unless I have values in both fields, AND THEN RETURN to the first field with the keyup and enter additional text.
Having trouble thinking this thru!