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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:05:41+00:00 2026-05-27T20:05:41+00:00

code is here I am trying to make the Parent element visible when the

  • 0

code is here I am trying to make the Parent element visible when the child element gets the style="display:block;", I have tried here but I couldn’t do it
my code is here:

<br/><br/><br/>
<div id="error_message_div">
    <div id="error_message_inner_div">
    <p class="color_red" id="name_error_message">please enter your name</p>
    <p class="color_red" id="email_error_message">please enter your email address</p>
    </div>
</div>
<div id="success_message">Thank you!</div>
<form id="form1">
    <br/><br/>
    Name : <input type="text" id="name" placeholder="enter your name" /><br/><br/>
    E-id : <input type="text" id="email_id" placeholder="enter your email_address" /><br/><br/>
    <input type="button" value="submit" id="form_submit" />
</form>

my css is:

.color_red{color:#f00;font-weight:bold;}
#error_message_div{width:400px;padding: 2px 12px 3px 7px;border: 1px solid #f00;-moz-box-shadow: 1px 1px 4px #ccc;-webkit-box-shadow: 1px 1px 4px #ccc;box-shadow: 1px 1px 4px #ccc;
-webkit-border-top-left-radius: 5px;-webkit-border-top-right-radius: 5px;-moz-border-radius-topleft: 5px;-moz-border-radius-topright: 5px;border-top-left-radius: 5px;border-top-right-radius: 5px;padding: 10px;background: white;-webkit-box-shadow: inset 0 0 20px #f00,1px 1px 4px #fff;-moz-box-shadow: inset 0 0 20px #f00,1px 1px 4px #fff;box-shadow: inset 0 0 20px #f00,1px 1px 4px #fff;color: black;right: 0;top: 0;}#error_message_inner_div{padding:15px;background:#fff;}#success_message,#name_error_message,#email_error_message{display:none;}#success_message{width:400px;border: 1px solid #00A300;-moz-box-shadow: 1px 1px 4px #ccc;-webkit-box-shadow: 1px 1px 4px #ccc;box-shadow: 1px 1px 4px #ccc;-webkit-border-top-left-radius: 5px;-webkit-border-top-right-radius: 5px;
-moz-border-radius-topleft: 5px;-moz-border-radius-topright: 5px;border-top-left-radius: 5px;border-top-right-radius: 5px;padding: 10px;background: white;-webkit-box-shadow: inset 0 0 20px #00A300,1px 1px 4px #fff;-moz-box-shadow: inset 0 0 20px #00A300,1px 1px 4px #fff;
box-shadow: inset 0 0 20px #00A300,1px 1px 4px #fff;}  

my script is :

$('#form_submit').click(function() {
    var name = $('input#name').val();
    var email = $('input#email_id').val();
    if (name == '') {
        $('#name_error_message').show();
        return false;
    }
    if (email == '') {
        $('#email_error_message').show();
        return false;
    }
    else {
        $('#name_error_message,#email_error_message,#error_message_div').hide();
        $('#success_message').show();
        return false;
    }

});
  • 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-27T20:05:42+00:00Added an answer on May 27, 2026 at 8:05 pm

    updated your code a bit
    http://jsfiddle.net/tive/pFFDk/1/

    select jquery framework in jsfiddle next time for jquery functionality.
    standard is on mootools

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

Sidebar

Related Questions

I'm trying to make things simpler. Here is my code: If Threading.Monitor.TryEnter(syncRoot) Then Try
I am trying to reduce some code here. I will explain how I have
I'm trying to solve the problem here but I don't know why my code
I am trying to make an Android interface, but I have a little overlapping
Trying to make a simple jquery drop down here, here's my code so far:
I'm trying my best to make this make sense, but basically I have a
So, I am trying to make floated divs to hide in parent's div, but
Trying to truncate some code here and running into a problem: <script type=text/javascript> $(function()
I am trying to test some of these code here http://ha.ckers.org/xss.html on my code.
I am trying to install MySQLdb package. I found the source code here .

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.