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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:09:56+00:00 2026-05-31T13:09:56+00:00

<ul class=tabs style=background: > <li><a href=javascript:tabSwitch(‘tab_1’, ‘content_1’); id=tab_1 class=active>Payment Gateway Basics</a></li> <li><a href=javascript:tabSwitch(‘tab_4’, ‘content_4’);

  • 0
<ul class="tabs" style="background: ">  

                    <li><a href="javascript:tabSwitch('tab_1', 'content_1');" id="tab_1" class="active">Payment Gateway Basics</a></li>  

                    <li><a href="javascript:tabSwitch('tab_4', 'content_4');" id="tab_4" >Contact Us</a></li>

                </ul>   

These are my tabs, once I submit a form in the “contact us” tab, it goes back to the first tab. Can anyone tell me how to stay in the same tab?
I’m using PHP server side switching, I’m using JavaScript.

(I used href not onclick in the listing. Stack Overflow doesn’t allow to use more href so I changed it into onclick, before this post was edited).

  • 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-31T13:09:57+00:00Added an answer on May 31, 2026 at 1:09 pm

    no directly provision

    You have to pass some querystring

    Read it on page_load in javascript

    and set the tab from javascript based on the query string value.

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

Sidebar

Related Questions

<style type=text/css> #featured a:first-child { background-color:yellow; } </style> <div id=featured> <ul class=ui-tabs-nav> <li><a href=#><span>test
Here is the html: <div id=wrapper> <ul class=tabs> <li class=active><a href=#tab1>Tab 1</a></li> <li class=><a
this is my code : <div id=test style=width:200px;height:100px;background:red class=tabs change_font_size> <div> <a class=delete style=float:right;font-size:20px;text-decoration:underline;cursor:pointer;>delete</a>
I want to rewrite core/adminthtml/block/widget/tabs.php class which is a super class for core/adminhtml/block/sales/order/view/tabs.php class.
I make three tabs. Language.( Include language Class with language layout) Activation ( Include
I have 2 tabs, named : Tab1, Tab2 class MainActivity extends TabActivity. MainActivity.java public
I have this part of the function : $jQ('.product-collateral .product-tabs li').each(function(index){ $jQ(this).attr('id', $jQ(this).find('h3').attr('class')); if(index
I'm having troubles trying to style my tabs in android. I want to make
I was just wondering what the general procedure is to style the tabs in
Wondering how to implement tabs in the same style as Espresso.app: Is there a

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.