I used the following on a submit button, based on two input items, to
ensure that both had to be completed(not empty) before the button was
enabled, it also fades it out to 50%

        $("#inputIDone,#inputIDtwo").keyup(function(){
        if($("#inputIDone").val()!="" && $("#inputIDtwo").val()!=""){
              $("#theSubmitID").fadeTo('fast', 1.0).attr("disabled", "");
                } else {
              $("#theSubmitID").fadeTo('fast', .50).attr("disabled", "true");
                }
        });

Reply via email to