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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:03:19+00:00 2026-05-20T13:03:19+00:00

I am unable to show an anchor tag to display itself using .show() in

  • 0

I am unable to show an anchor tag to display itself using .show() in Jquery or javascript. Conn Window is visible by default. It hides and displays the div but it is unable to do the same with anchor. I have manually tried to change it in firebug/IE dev tools and it works there. It just doesn’t work when I do it with jquery/javascript.

Here is the HTML code:

<a href="javascript:connShow();" id="connTab" style="display:none; text-decoration:none;"></a>
<div id="connWindow">Conn Window
    <div id="closeButton" onclick="javascript:connHide();"></div>
</div>

Here is the jquery code:

function connHide()
{
    $('#connTab').show();
    $('#connWindow').hide();
}

function connShow()
{
    $('#connWindow').show();
    $('#connTab').hide();
}

Any help will be greatly appreciated!

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

    The inline CSS display:none is overriding the mechanism jQuery uses to show and hide.

    Hide the anchor programmatically instead:

    HTML:

    <a href="#" id="connTab" style="text-decoration:none;"></a>
    <div id="connWindow">
        Conn Window
        <div id="closeButton"></div>
    </div>
    

    Script:

    $(function() { // on document load
        $('#connTab').css('display', 'none');
    
        // I'm going to replace your inline JS with event handlers here:
        $('#connTab').click(function() { connShow(); return false; });
        $('#closeButton').click(function() { connHide(); });
    });
    
    function connHide() {
        $('#connTab').css('display', '');
        $('#connWindow').css('display', 'none');
    }
    
    function connShow() {
        $('#connWindow').css('display', '');
        $('#connTab').css('display', 'none');
    }
    

    Hope that helps.

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

Sidebar

Related Questions

Using the below code I am unable to show the open/save as file dialog:
I have registration form on my website that, using jquery I append default values
I'm unable to transition from index.html to any pages correctly. All transitions would show
I'm getting an Unable to obtain public key for StrongNameKeyPair. exception using Newtonsoft's JsonConvert.SerializeObject
I am getting a Unable to load the requested file: default.php error in codeigniter
I have a site built using jQuery and jQueryUI. All dialogs are using the
I am unable to get the background picture to show in my pages. I
I'm developing an auto anchor jquery plugin with indexing feature for blogger blogs. This
I am able to show EditTextPreference with default summary. Now i want to update
I am using MBProgressHUD to show animations when the view is loading. WHen the

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.