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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:24:28+00:00 2026-06-11T08:24:28+00:00

Here I Need Help to Find the solution for my question: <script type=text/javascript> function

  • 0

Here I Need Help to Find the solution for my question:

<script type="text/javascript">
        function ShowHide(id)
        {
            $('.datatab').each(function(){
                if($(this).attr('id') != id)
                {
                    $(this).hide();
                }
                else
                {
                    $(this).show();
                }
            });
        }
    </script>

Tab Control:

     <div data-role="navbar">
                <ul>
                    <li class="tabLi"><a onclick="ShowHide('contact')" class="ui-btn-active ui-state-persist">Contact</a></li>
                    <li class="tabLi"><a  onclick="ShowHide('primary')">Primary</a></li>
                    <li class="tabLi"><a  onclick="ShowHide('working')">Working</a></li>
                </ul>
            </div>


<div id="contact" class="datatab" >
    <ul data-role=listview data-inset=true data-theme=d>
      <li data-theme=e  ><font size="1px"> Contact Info </font></li>

      <li><font size="1px"> Phone No : 
      </font></li>
    </ul>
    </div>
    <div id="primary" class="datatab" hidden>
    <ul data-role=listview data-inset=true data-theme=d>
      <li data-theme=e  ><font size="1px"> Contact Info </font></li>

      <li><font size="1px"> Phone No : 
      </font></li>
    </ul>
    </div>
    <div id="working" class="datatab" hidden >
    <ul data-role=listview data-inset=true data-theme=d>
      <li data-theme=e  ><font size="1px"> Contact Info </font></li>

      <li><font size="1px"> Phone No : 
      </font></li>
    </ul>
    </div>

When i’m clicking on the tab it should show the corresponding div now it is showing, but only after refreshing of the page:

My suggestion is to refresh the page when, I enter it through the href. Unfortunately I don’t know the code. Could anyone help me to get out from this…?

Providing jsFiddle link is also usefull for me.

  • 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-06-11T08:24:29+00:00Added an answer on June 11, 2026 at 8:24 am

    Try this:

    document.location.reload()
    

    It should refresh your page.

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

Sidebar

Related Questions

I really need help here. I'm desperate at this point. I have NSOperation that
I need help, how can I learn this framework? Here's what I need to
JS beginner here. I need help with a script to place different content in
This is a follow up question from my previous one found here I need
Once again I'm asking this question, and still can't find any reasonable solution. I
Need help! I've been looking for a solution for this seemingly simple task but
BeautifulSoup newbe... Need help Here is the code sample... from mechanize import Browser from
I need help with a weird runtime error. Here's the code which gives it:
I need help with CMD scripts. Here is my problem: I have list of
need help to create regular expression matching string www.*.abc.*/somestring Here * is wild card

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.