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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:48:13+00:00 2026-05-27T06:48:13+00:00

I am trying to use some show hide functions in my js file: $(document).ready(function()

  • 0

I am trying to use some show hide functions in my js file:

$(document).ready(function() {
    $('#me').hide();
    $('#send').click(function() {
        $('#me').show("slow");
    });
});

for some reason, when i click the id=”send” button, the id=”me”(a picture)

is not showing up again(though it disappears):

<div id="me">
    <img src="Me.JPG" alt="me" width="450" height="450" alt="picture" align="right"/>
</div>

help please?

please let me know if i have to add more code to make myself clear…

thank you!

EDIT:

here is the code for the send button:

<input type="submit" id="send" value=" Send " class="submit" />
  • 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-27T06:48:14+00:00Added an answer on May 27, 2026 at 6:48 am

    I would say the most likely answer is the send button does not yet exist when your page is loaded. Is this button being created dynamically, or through some other mechanism? To debug, I would say:

       $(document).ready(function() {
         $('#me').hide();
         alert(document.getElementById('send')); //Test if it exists
         $('#send').click(function() {
          $('#me').show("slow");
        });
       });
    

    If you get a popup with null, then you’ll have to track down where this button gets generated and bind the event there.

    Other than that, as you can tell from:

    jsfiddle.net/zs7W2/

    Your code works fine.

    UPDATE:

    I believe your FORM is actually submitting itself. You should change your code to:

       $(document).ready(function() {
         $('#me').hide();
         $('#send').click(function() {
          $('#me').show("slow");
          return false; //Prevent submit
        });
       });
    

    Or, use a <button type="button"> or <input type="button">

    Example: http://jsfiddle.net/zs7W2/7/

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

Sidebar

Related Questions

I am trying to use some action when I click button in navigation controller.
I'm trying to use jQuery's slideToggle function to show or hide a panel which
I am trying to use some pinvoke code to call a C function. The
I'm trying to use some of the functions that are in the /lib/libproc-3.2.6.so library
I am trying to use computer to show some planar geometry plots. I donot
I am trying to use Google graph API (image) to show some data in
I'm trying to use assertions to show some invariants (mostly in testing) Thus i
I'm trying to use dialog to show some data, but unfortunatly the data might
I'm trying to use some data from a PlanPlusOnline account. They only provide a
I'm trying to use some of the new MFC feature pack controls on an

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.