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 6863055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:44:09+00:00 2026-05-27T02:44:09+00:00

I’m trying to make tabs and am using easytabs. By the below code, the

  • 0

I’m trying to make tabs and am using easytabs. By the below code, the second option is the default selected tab.

I want the first tab to be selected as an active tab. I did it before, but unfortunately I missed the file. Now I am struggling to do it again. Please tell me how to make the first tab (statistics) to be selected at first as a default tab. Now the second tab which (followup) is the default selected tab.

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"> 
    <head profile="http://gmpg.org/xfn/11"> 
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
  <script src="js/ajax_request.js" type="text/javascript"></script> 

        <script src="js/jquery-1.4.4.min.js" type="text/javascript"></script> 
        <script src="js/jquery.hashchange.min.js" type="text/javascript"></script>
        <script src="js/jquery.easytabs.min.js" type="text/javascript"></script>

<script src="js/jquery.maskedinput.js" type="text/javascript" charset="utf-8"></script>
        <style> 
            #tab-container { border: solid 0px; height: auto; }
            #tab-container ul { margin: 0; padding: 0; }
            #tab-container ul li { display: inline-block; background:#464646 ; border:  1px; border-bottom: none; font-color:#000000;}
            #tab-container ul li a { display: block; padding: 5px; outline: none; }
            #tab-container ul li a:hover { text-decoration: none;background-color:#30A4B1; }
            #tab-container ul li.active-tab {   padding-top: 6px; position: relative; top: 1px; font-color:#000000; }
            #tab-container ul li a.active-tab { font-weight: bold;position:relative; }
            #tab-container .panel { border: ; padding: 0 10px; }
            #tab-container ul li a.active { background-color:#30A4B1; color:#ffffff; }

        </style>
        <script type="text/javascript"> 
          $(document).ready(function(){ $('#tab-container').easytabs({
            updateHash: false,
            tabActiveClass:'active',


          }); });
</script>         
    </head>
<body>
        <div id="tab-container"  >
        <ul style="float:right;">
        <li><a href="" data-target="#tab2">Statistics
    </a>        
        </li>           
        <li><a href="" data-target="#that-other-tab">Followup
                <span class="notification-bubble" title="Notifications" style="background-color: rgb(239, 51, 14); display: inline;" id="countOrder"><?php echo $countOrder;?></span>           
        </a>        
        </li>       
        <li><a href="" data-target="#pay-tab" class="tabs">Payment</a></li>
           </ul><br/><br/><hr/>

        <div class="panel-container">
        <div id="tab2">
            <iframe src="charts/chart_main.php" width="100%" height="1000px" scrolling="no" style="border:0px; margin:0px;">
                </iframe>
                </div>

            <div id="that-other-tab">
            <iframe src="followup/follow_grid.php" width="100%" height="500px" scrolling="no" style="border:0px; margin:0px;">
                </iframe>
                </div>
                                <div id="pay-tab">
            <iframe src="pay_grid.php" width="100%" height="500px" scrolling="no" style="border:0px; margin:0px;">
                </iframe>
                </div>      
          </div>
        </div>
    </body>
</html>
  • 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-27T02:44:10+00:00Added an answer on May 27, 2026 at 2:44 am

    You have a bunch of different classes, but from the looks of it you can just remove the active class from the second tab and then add the active class to the first tab. Simple stuff 🙂

    Hope this helps.


    Edit —

    I think i just figured out something in this plugin. You want it to be on the first tab even when you refresh the page, correct? If so, you just need to turn the updateHash setting to false. Replace your current <script> with this:

    <script type="text/javascript"> 
    $(document).ready(function() {
        $('#tab-container').easytabs({
            animate: false,
            tabActiveClass: 'active',
            updateHash: false
        });
    });
    </script> 
    

    I hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
I'm making a simple page using Google Maps API 3. My first. One marker
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported

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.