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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:44:04+00:00 2026-05-18T10:44:04+00:00

I am using JQuery to show a green check-mark and message on a successful

  • 0

I am using JQuery to show a green check-mark and message on a successful submission. The image and message show up correctly. However I then want to slowly remove the image and message using JQuery’s hide function. I have used this before with no problem when the html was on the page already. This time it is not working and I’m wondering if it is since the HTML is being added with JQuery and then removed. I’m also not sure if the element is a child of another element or not, which may be the problem. Any insight into the issue would be a huge help, thanks.

JQuery Code:

$("<span id='checkmark'><img height='45' width='45' src='./img/checkmark_green.jpg'/>&nbsp;<span style='color: #33CC33; font-size: 14pt'>Word successfully added to the dictionary.</span><br/></br></span>").prependTo("#div_dict");

//i also tried '#div_dict > #checkmark'             
$('#checkmark').click(function(){
    $(this).hide('slow');
});

HTML/PHP:

echo('<div id="div_dict">');
        echo('<big id="add"><b>Add a word or phrase to the dictionaries</b></big><br/>');
        echo('<form id="form_dict" name="form_dict">');
        echo('<input id="entry" name="entry" size="30"/><br/>');
        echo('<input type="radio" id="sent" name="sent" value="Positive"/>positive&nbsp;&nbsp;<input type="radio" id="sent" name="sent" value="negative"/>Negative<br/><br/>');
        echo('<input id="but_dict" type="button" value="Submit" onclick="addToDict();"/>');
        echo('</form>');
        echo('</div>');
  • 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-18T10:44:05+00:00Added an answer on May 18, 2026 at 10:44 am

    Your code works for me if you want to click the text to remove it. You can remove the click function to hide it on it’s own if that is what you’re after.

    $("<span id='checkmark'><img height='45' width='45' src='./img/checkmark_green.jpg'/>&nbsp;<span style='color: #33CC33; font-size: 14pt'>Word successfully added to the dictionary.</span><br/></br></span>").prependTo("#div_dict");
    
    $('#checkmark').delay(2000).hide('slow');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using jquery validate to validate my forms. I want to show a text
I'm using jQuery to show a success message after a form is submitted. The
I'm using jQuery to show and hide various divs to paginate content. However, immediately
I want to filter a table using jQuery hide/show based on what the user
I am using a jquery to show fields of HTML like select,text, image. But
I am using JQuery to show a tooltip-Box after clicking an image. So far,
I am using jQuery to show/hide a div container (#pluginOptionsContainer), and load a page
I'm using jquery to show animated MSN like window at the bottom of the
I am encountering an odd behavior using jQuery to show/hide a menu. I have
As the title implies, I'm using jQuery's show and hide functions to hide and

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.