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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:14:21+00:00 2026-05-22T18:14:21+00:00

In my case, jQuery is not working. I don’t know where I am wrong.

  • 0

In my case, jQuery is not working. I don’t know where I am wrong. It can be confliction with some other js files but not sure. See below screenshot.

enter image description here

In this screen shot you are seeing google custom search box which is ajax based. My problem is when i click on search box then bottom Premium sales jobs contaner should be hidden. For this i have used this jQuery code :

$(document).ready(function(){
    $(".gsc-search-button").click(function(){
        $("#container_table").hide();
    });
)};

I have included jQuery library with correct path. I have also used alert() after document.ready to check it is working or not..But its not working.

.gsc-search-button is the class of search button.
#container_table is the id of that table which I want to hide.

The search data will be load into like div which is initially look like this :
<div id="cse">Loading</div> and after search iframe placed into this div and replaced Loading String.

I have also tried below javascript code :

if(document.getElementById('cse').innerHTML != "Loading") {
  document.getElementById('#container_table').style.display = "none";
  }

But it’s not working.

  • 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-22T18:14:21+00:00Added an answer on May 22, 2026 at 6:14 pm

    You’re confusing the CSS style selectors in jQuery with the ID in the following code:

    document.getElementById('#container_table')
    

    It might work if you remove the ‘#’ symbol:

    document.getElementById('container_table')
    

    But another way that would clear the element with “cse” identity would be

    $('#cse').text('')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is for jQuery Mobile. Not all regular jQuery answers will work. I can't
Is there a case insensitive version of the :contains jQuery selector or should I
I'm sorry about the title I'm just not sure how to describe this one.
case i of 0..99 : Function-call('bobo') ; 100..209 : function-smell('Hobo'); 210..300 : function-yikes('argh'); end;
The case goes as following: You have a Boolean property called FullScreenEnabled. You enter
Use case: A does something on his box and gots stuck. He asks B
Use case: 3rd party application wants to programatically monitor a text file being generated
Simple case: i put a DataTable in Cache DataTable table = SomeClass.GetTable(); Cache[test] =
I was using a CASE called MAGIC for a system I'm developing, I've never
In the case of languages that support single decision and action without brackets, such

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.