jquery doubt with call to funtions
<p>hi i have the follow code </p>

<pre><code>var x;
x=$(document);
x.ready(initEvents);

function initEvents()
{
    var x;
    x = $("#send");
    x.click(pressButton);
    x = $("#clean");
    x.click(cleanForm);
}

/*this method  validates the form*/
function pressButton()
{   
    $("#form1 :input").attr("disabled", true);

    $("#form1").validate(
    {   rules:
        {
            //sets the rules for validate
        },
        messages:
        {
            //sets the message for validates
        },
        submitHandler: function (form)
        {
            //send the form
        }
    });
}
</code></pre>

<p>my problem is that if a put this line <code>$("#form1 :input").attr("disabled", true);</code> the validates don't executes but if i commented the validate function work's great. the question is why i can't execute the two lines?? why i'm doing wrong in the code??? thanks for asking</p>
