title: Can't disable a tab in tabs list using javascript\jquery
body: <p>I have a .cshtml file which contains this code:    </p>
  
  <pre><code>&lt;ul id="tabcont1-nav" class="tabnav"&gt;
      &lt;li id="t1"&gt;&lt;a href="#tab1"&gt;&lt;span&gt;A   &lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li id="t2"&gt;&lt;a href="#tab2"&gt;&lt;span&gt;B   &lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li id="t3"&gt;&lt;a href="#tab3"&gt;&lt;span&gt;C   &lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li id="t4"&gt;&lt;a href="#tab4"&gt;&lt;span&gt;D   &lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li id="t5"&gt;&lt;a href="#tab5"&gt;&lt;span&gt;E   &lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li id="t6"&gt;&lt;a href="#tab6"&gt;&lt;span&gt;F   &lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>and after there is the tabs code..for example:</p>
  
  <pre><code>div id="tab1" class="tab"
  </code></pre>
  
  <p>etc.</p>
  
  <p>I would like to disable tab2, tab5 and tab6 (i would like that by clicking on them..nothing happens).</p>
  
  <p>I've tried (reading on stackoverflow) doing this:</p>
  
  <pre><code>&lt;script&gt;
      $(document).ready(function() {
          document.getElementById("t2").childNodes[0].onclick = function() {return false;};​
      });
  &lt;script&gt;
  </code></pre>
  
  <p>but i have an error of invaling character during run.
  I've tried using also jquery..but it's the same. What can i do?</p>