title: How can I disable an anchor until I assign an href attribute value?
body: <p>Here I want disable the anchor. While the anchor is in its initial state it should not navigate.</p>
  <p>html</p>
  <pre><code>&lt;a class=&quot;link&quot; id=&quot;decre&quot; href=&quot;&quot; disabled&gt;&lt;i class='far fa-arrow-alt-circle-left navigate_arrow'&lt;/i&lt;/a&gt;
  </code></pre>
  <p>JQuery</p>
  <pre><code>var tNumber = {{ProductDetails.id}};
  var count = {{ count }}
  var count_classifieds = count + 1
  var sSting = &quot;http://127.0.0.1:8000/detail/&quot;;
  
  $(&quot;#decre&quot;).click(function(){
      tNumber--;
      if (tNumber &gt; 0) {
      var cConcate= sSting + tNumber+&quot;/&quot;;
      $(&quot;#decre&quot;).attr(&quot;href&quot;, cConcate);
      }else{
          return false;
      }
  });
  </code></pre>