title: Anchor tag disable
body: <p>I have to enable and disable the anchors based on index ,eg : when index is 3 or more &amp;gt anchor should be disabled . 
  I have written the following code snipet but the anchor is not getting disabled when index is 3 .</p>
  
  <pre><code>if(index == 3){
       $("#anchor2").click(function(e){
                  e.preventDefault(); 
                  return false;
          });
   }
  </code></pre>