title: Jquery tab disabling
body: <p>I am using jquery tab. I want to disable the tabs when the form is in edit mode.
  Iam using a query string <code>id</code> for this and <code>type</code> for identifying the tab</p>
  
  <p>According to the value of id the tab is disabled. Iam using following code</p>
  
  <pre><code> $(document).ready(function() {
          var id = getQuerystring("Id");
          if (isNaN(id)) {
              var inx = getQuerystring("type");
              if (isNaN(inx))
                  inx = 1;
              inx = inx - 1;
              $('#tabs').tabs();
          }
          else {
              var inx = getQuerystring("type");
              if (isNaN(inx))
                  inx = 1;
              inx = inx - 1;
              $('#tabs').tabs();
              $('#tabs').tabs('select', inx);
              if (!isNaN(id)) {
                  for (var cnt = 0; cnt &lt; 6; cnt++) {
                      $('#tabs').tabs('disable', cnt);
                      if (cnt == (inx)) {
                          $('#tabs').tabs();
                          $('#tabs').tabs('select', cnt);
                      }
                  }
              }
          }
          if (inx == 0)
              LoadIframePage('CashReceipt.aspx?type1=1');
          else if (inx == 1)
              LoadIframePage('CashPayment.aspx?type1=2');
          else if (inx == 2)
              LoadIframePage('BankDeposit.aspx?type1=3');
          else if (inx == 3)
              LoadIframePage('BankWithDrawal.aspx?type1=4');
          else if (inx == 4)
              LoadIframePage('Journal.aspx?type1=5');
  
  
      });
  
  
  
  
  
  
   &lt;div id="tabs" style="font-size: 12px; width: 100%; height: 100%; visibility:hidden" onload="SelectaTab(2);"&gt;
                  &lt;ul&gt;
                      &lt;li&gt;&lt;a id="cr" href="#fragment" onclick="LoadIframePage('CashReceipt.aspx?type1=1')"&gt;&lt;span&gt;Cash Receipt&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a id="cp" href="#fragment" onclick="LoadIframePage('CashPayment.aspx?type1=2')"
      &gt;&lt;span&gt;Cash Payment&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a id="br" href="#fragment" onclick="LoadIframePage('BankDeposit.aspx?type1=3')"&gt;&lt;span&gt;Bank Receipt&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a id="bw" href="#fragment" onclick="LoadIframePage('BankWithDrawal.aspx?type1=4')"&gt;&lt;span&gt;Bank Payment&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a id="jr" href="#fragment" onclick="LoadIframePage('Journal.aspx?type1=5')"&gt;&lt;span&gt;Journal&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;/ul&gt;
                  &lt;div id="fragment" style="width: 100%; height: 90%"&gt;
                      &lt;iframe  style="width: 98%; height: 100%" frameborder="0" scrolling="yes" id="ifrforms" onload="test"&gt;
  
                      &lt;/iframe&gt;
                  &lt;/div&gt;
  
              &lt;/div&gt;
  </code></pre>
  
  <p>My pblm is that tabs are disabled . but while clicking on the tab the page is redirected and that page is loaded...How can i solve this.</p>
  
  <p>Thanks in advance</p>