jquery, run form
<p>how to activate the button. If the condition is true, I want to send data through a method (POST).</p>

<pre><code>&lt;script&gt;
$(document).ready(function(){                   
    var count = 0;
    if(count == 2)
    {
        //run form
    }
});
&lt;/script&gt;
&lt;/head&gt;                                                                 
&lt;body&gt;
&lt;form action = "" method = "post"&gt;
&lt;input type = "text" name = "name" /&gt;
&lt;input type = "submit" id = "ok"/&gt;
&lt;/form&gt;
</code></pre>
