Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3634012
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:43:33+00:00 2026-05-19T00:43:33+00:00

I am using jquery tab. I want to disable the tabs when the form

  • 0

I am using jquery tab. I want to disable the tabs when the form is in edit mode.
Iam using a query string id for this and type for identifying the tab

According to the value of id the tab is disabled. Iam using following 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 < 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');


    });






 <div id="tabs" style="font-size: 12px; width: 100%; height: 100%; visibility:hidden" onload="SelectaTab(2);">
                <ul>
                    <li><a id="cr" href="#fragment" onclick="LoadIframePage('CashReceipt.aspx?type1=1')"><span>Cash Receipt</span></a></li>
                    <li><a id="cp" href="#fragment" onclick="LoadIframePage('CashPayment.aspx?type1=2')"
    ><span>Cash Payment</span></a></li>
                    <li><a id="br" href="#fragment" onclick="LoadIframePage('BankDeposit.aspx?type1=3')"><span>Bank Receipt</span></a></li>
                    <li><a id="bw" href="#fragment" onclick="LoadIframePage('BankWithDrawal.aspx?type1=4')"><span>Bank Payment</span></a></li>
                    <li><a id="jr" href="#fragment" onclick="LoadIframePage('Journal.aspx?type1=5')"><span>Journal</span></a></li>
                </ul>
                <div id="fragment" style="width: 100%; height: 90%">
                    <iframe  style="width: 98%; height: 100%" frameborder="0" scrolling="yes" id="ifrforms" onload="test">

                    </iframe>
                </div>

            </div>

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.

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T00:43:34+00:00Added an answer on May 19, 2026 at 12:43 am

    Where is the function LoadIframePage defined? Could you put an if statement in there like so:

     if( $('#tabs').attr("disabled") ) {
         return;  // do nothing
     } else {
         // carry on...
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using jquery ui tabs Inside a tab i want to inset an
I am using jquery-ui tabs ...Actually i want to reset the form fields after
I want to get the index of the current tab using jQuery UI tabs:
Using Jquery UI's tabs I want to be able to set the tab +
I'm using jQuery UI tabs for simple tab navigation on a page, and this
I'm using JQuery UI to create a tab, and I want to the contents
I using Jquery tabs plugin to have tabs in my view. I want <li><a
I have jQuery tab, it works perfectly, I want to make the tabs to
I am using JQuery UI tabs , to get the current selected tab i
I am using jquery UI tabs and working pretty well and now I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.