[jQuery] Will this code enable & disable a submit button?

[jQuery] Will this code enable & disable a submit button?


Hi, all...
Will the "onInvalid" and "onValid" lines in the code below work
to enable & disable a submit button?
Rick
    $(document).ready(function(){
    
     onInvalid: function(form) {
$(form).find("input[@type=submit").attr("disabled",
"disabled");
};
onValid: function(form) {
$(form).find("input[@type=submit").attr("disabled", "");
};
        $("#Principal").blur(function(){
        $.post("callpage_Validate_Mortgage_Inputs.cfm",
{principal:$("#Principal").val()},
        function (data) {$("#Result_Principal").empty().append(data)
} ) });
    
        $("#Interest").blur(function(){
        $.post("callpage_Validate_Mortgage_Inputs.cfm",
{interest:$("#Interest").val()},
        function (data) {$("#Result_Interest").empty().append(data)
}) });
    
        $("#Years").blur(function(){
    
$.post("callpage_Validate_Mortgage_Inputs.cfm",{years:$("#Years").val()},
        function (data) {$("#Result_Years").empty().append(data) })
});
        
        $("#Calculate").click(function() { return
CalculateMortgage(); });
    
    });