validator

validator

I'd like to have the error displayed in an alert box; searched for a way but no found;
did find a way to display in a separate message space:
 $("#ccinfo").validate({
                rules: {
              ccnum: {
                required: true,
                creditcard: true
              }
            },
              invalidHandler: function(form, validator) {
                var errors = validator.numberOfInvalids();
                if (errors) {
                  var message = errors == 1
                    ? 'You missed 1 field. It has been highlighted'
                    : 'You missed ' + errors + ' fields. They have been highlighted';
                  $("div.error span").html(message);
                  $("div.error").show();
                } else {
                  $("div.error").hide();
                }
              }
          });

two problems: the error message is also displayed by the input box;
this causes the form to jump up and out of align;
so how is this turned off?

is it possible to display the error message in an alert box without spending a two or 2 guessing?

any assistance would be greatly appreciated
B