If the data from the form is not entered, the send button does not work.

    1 answer 1

    Here is a jquery solution

    $(function() { $(":text").keypress(check_submit).each(function() { check_submit(); }); }); function check_submit() { if ($(this).val().length == 0) { $(":submit").attr("disabled", true); } else { $(":submit").removeAttr("disabled"); } }