disabling onclick with jQuery until page is loaded?
<p>I have a button that works <code>onclick</code>. The problem is that it fails to work if the page is not fully loaded, so I want to disable it until the page is loaded and then enable it with jQuery.</p>

<pre><code>&lt;div class="btn btn-block" onclick="launchAction()"&gt;
&lt;div class="launch"&gt;&lt;i class="icon-launch"&gt;&lt;/i&gt;&lt;/div&gt;
Launch
&lt;/div&gt;
</code></pre>

<p>How would I do that? I tried to <code>disable</code> it but that didn't stop onclick from working.</p>