title: Unable to disable a button when users click on it
body: <p>I have added the following jquery to disable all the buttons which have a class named <code>.disableButton</code>, as follow:-</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('.disableButton').on('click', function (e) {
      $(this).prop('disabled', true);
  });//disable further clicks</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;input type="submit" value="Submit" class="disableButton btn btn-primary" /&gt;
  &lt;input type="text" class="disableButton" name="NPI" placeholder="" style="height: 50px;" /&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>but when i click on them the button will not get disabled..</p>