How to throw alert

How to throw alert

I am trying to throw an alert with the attributes of a submit button in the alert.

What am I doing wrong?

$("document").ready( function () {
        alert("#SubmitButton").attr("attr", value);
        $alert("#SubmitButton").attr("attr", value);
});