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

  • Home
  • SEARCH
  • 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 9048945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:16:24+00:00 2026-06-16T12:16:24+00:00

I want to hide an image on page load, depending on its title This

  • 0

I want to hide an image on page load, depending on its title
This does not seem to work.. when i put this in my code, i get an alert for all the images that have a title (which is correct):

$('article a.tooltip img').load(function(){
    if(this.title != ""){
        alert(this.title);
 }

});

In my CSS file I disabled the display of all images at first:

.contact a.tooltip{
    display: none;
}

now i want to show all the images with non empty title, which doesnt work:

$('article a.tooltip img').load(function(){
    if(this.title != ""){
        this.show();
        alert(this.title);
 }

});
  • 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-16T12:16:25+00:00Added an answer on June 16, 2026 at 12:16 pm

    article a.tooltip img is not hidden.
    .contact a.tooltip is hidden.

    Change

    $('article a.tooltip img').load(function(){
        if(this.title != ""){
            this.show();
            alert(this.title);
     }
    
    });
    

    to

    $('article a.tooltip img').load(function(){
        if(this.title != ""){
            this.parent().show();
            alert(this.title);
     }
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Edit: Here is the new code: $(#normalcontent).hide(fast).load($this.attr(href) + #normalcontent,,function(){ $(this).slideDown(normal); $(this).find(img).each(function(){ if($(this).hasClass(large)) { var
I want to hide the source of image tag. When someone view the page
I want to hide framelayout dynmically in android, How I can achieve this.
I have created this page and when you load the page you see there
JavaScript: <script> $('#alink').click(function () { $(#loading).ajaxStart(function(){ $(this).show(); }).ajaxStop(function(){ $(this).hide(); }); $('#aresult').load('content2.html', function() { $('#successdata').html('100%
I want to fade in a CSS page background image with jQuery when my
I am using this Tutorial to show a Popup Modal Window on page load,
I have folowing code where i am using block ui,but its not blocking the
How can I hide/secure image path in asp.net? I don't want the user see
I want hide some fields in existed XML and use that XML as Input

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.