Disable a button dynamically created
<p>I have a button created in ajax event (I call some data and I create a button at the end).</p>

<p>How do I disable it?</p>

<p>I try:</p>

<pre><code>$(document).on("click", ".sendLead", function(event) {
    $(".sendLead").disabled = true;
    some code...
</code></pre>

<p>but it does not work !</p>

<p>Any idea ?</p>