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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:04:36+00:00 2026-06-13T20:04:36+00:00

Consider an image with an ID fading in when the parent div is clicked,

  • 0

Consider an image with an ID fading in when the parent div is clicked, simple right?

I am using this technique to simulate radio buttons.

HTML

<div id="parent_div">
    <img id="image_id" style="display:none;" src="/images/some_image.png">
</div>

JQuery

$('#parent_div').on('click', function(){
    $('#image_id').fadeIn(200);
});

Now the problem is, in Firefox (maybe other browsers as well), that when the parent div is clicked, and the image fades in, the image has the appearance of being highlighted.

With that being said, if I click somewhere else on the screen, the image highlight disappears. Is there a way to get around this without having to click elsewhere?

I tried using .blur() like so, hoping it might work.

$('#image_id').fadeIn(200).blur();

Here is a visual example: http://www.videsignz.com/images/blur_image.jpg

JSFiddle: http://www.jsfiddle.net/VRfuJ/

This is my fiddle view: http://www.videsignz.com/images/myfiddleview.jpg

  • 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-13T20:04:37+00:00Added an answer on June 13, 2026 at 8:04 pm

    I’m guessing this is what you’re after:

    $('img, .radio_btn').on('mousedown', function(e) {
        document.onselectstart = function() { return false; };
        e.target.ondragstart = function() { return false; };
        return false;
    });
    
    $('.radio_btn').on('click', function() {
        if (!$('img', this).is(':visible')) {
            $('img', this).fadeIn(200);
            $('.radio_btn').not(this).find('img').fadeOut(200);
        }
    });
    

    FIDDLE

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

Sidebar

Related Questions

Consider this being slipped into some HTML file right after a <body> tag and
Consider this if params['image'].nil? In html's case, I used the above and it checked
Consider a normal PHP image upload functionality (not using AJAX) and there occurs this
Trying to understand PNG format. Consider this PNG Image: The Image is taken from
Consider this pseudo code: // an image is initialized UIImage *imagePX = [[UIImage alloc]initWithContentsOfFile:...
Consider this code: var img = new Image(); img.onload = function() { console.log(this.width); };
I mean: Consider a VMWare Windows 2003 image. If I 1 - start this
please consider this image: I have a table like this: Age Active Men/Women -------------------------------------------------
Consider the following image: How would I get the average (unknown what this is
Consider the following image: This is supposed to look like a patch of grass

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.