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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:55:36+00:00 2026-05-28T03:55:36+00:00

I have an image that need to be removed, but I can’t have access

  • 0

I have an image that need to be removed, but I can’t have access to touch the html code, the only way is to using JQuery. So I tried to find the image and given the image as display none but it doesn’t get work…

$('td.Headerbg').find('img').css('display', 'none');

the class contained td which is a part of nested table like this..

 <tr>
            <td>
                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                    <tr>
                        <td class="Headerbg">
                            <img src="images/header.gif" alt="" />

                        </td>
                    </tr>
                </table>

            </td>
        </tr>

Is my code running on wrong way?

Looking forward to your replies..

  • 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-28T03:55:37+00:00Added an answer on May 28, 2026 at 3:55 am

    Your selector will work with the code you have provided. Make sure you are running your jQuery code at the end of the HTML document (just before the closing </body> tag) or running it within a document.ready event handler:

    $(function () {
        $('.Headerbg').find('img').css('display', 'none');
    });
    

    If you run your code before the DOM elements are available then the $('.Headerbg') won’t select anything and nothing will happen, this is why it is important to use the document.ready event handler or to put you code at the end of your HTML document (which is the best way, it will allow your page to load more quickly).

    If you are just running this code when the page loads then you could also use CSS which won’t have any flickering of the images, they will just always be hidden:

    .Headerbg img {
        display : none;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some images that need to change, based not only on hover, but
I have an image that I have in my bundle resources that I need
So here's my issue. I have an image that I need to shrink. The
I have a container that contains an image that I need to drag from
I have a slow connection that I need to send a PNG image over
I have a BufferedImage with an IndexColorModel. I need to paint that image onto
I make an app that have to printing image. I need to print image
I have this method that changes an larger image source on click. I need
I need to make the program which have one form that contains PNG image
I have images that need to scale to the screen's size. The images will

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.