title: disable anchor tag using Jquery
body: <p>I have a image associated with the anchor tag, once the user clicks the image a popup loads. I want to disable this anchor tag.</p>
  
  <p>The html code looks like:</p>
  
  <pre><code>&lt;a href="#" class="openModalLink"&gt;
  &lt;img style="vertical-align: middle; border: none" width="9%" alt="" id="imgmap" class="zoom" /&gt;&lt;/a&gt;
  </code></pre>
  
  <p>I have tried the below codes but doesn't seem to work</p>
  
  <pre><code> $(".openModalLink").off("click");
   $(".openModalLink").attr("disabled", true);
   $(".openModalLink").attr("disabled", "disabled");
  </code></pre>
  
  <p>Thanks for the replies</p>