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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:22:12+00:00 2026-05-23T04:22:12+00:00

<script type=text/javascript> $(document).ready(function($){ $.supersized({ //Background image slides : [ { image : ‘images/pendulumWeb.jpg’ }

  • 0
<script type="text/javascript">  
    $(document).ready(function($){
        $.supersized({
            //Background image
            slides  :  [ { image : 'images/pendulumWeb.jpg' } ]                 
        });

        $("form#submit").submit(function() {
            // we want to store the values from the form input box, then send via ajax below
            var email = $('#email').attr('value');
                $.ajax({
                    type: "POST",
                    url: "ajax.php",
                    data: "email="+ email,
                    success: function(){
                         $('form#submit').hide(function() {
                            $('div.success').fadeIn();
                        });
                    }
                });
            return false;
            });
        });

</script>

<div id="contact">
    <form id="submit" method="post">
        <legend>Enter InformationEnter InformationEnter InformationEnter InformationEnter InformationEnter InformationEnter InformationEnter Information</legend>
        <div id="submit">
            <input id="email" name="email" value="Email Address" size="20" type="text" />
            <button class="buttonPositive" type="submit">Submit</button>
        </div>
    </form>

    <div class="success" style="display: none;">We will email you shortly.</div>    
</div>

I am having a hard time figuring out why when I click my submit button why my text after my success (fadeIn) won’t appear below the submit button. I am doing a console log of test but it stops going to the console right below $('form#submit').hide(function()..Maybe I am missing something simple here? Problem fixed! Thanks Adam

One more thing! My data is not getting to my db..here is my code..I am getting a primary id of 0 but no data.

// This is config.php //
$sql = mysql_connect("localhost","root","");

if (!$sql)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("test", $sql);
//

include('config.php');

// CLIENT INFORMATION  
$email = htmlspecialchars(trim($_POST['email']));  

$addClient  = "INSERT INTO clientEmails (Email) VALUES ('$email')";
mysql_query($addClient) or die(mysql_error());
  • 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-23T04:22:12+00:00Added an answer on May 23, 2026 at 4:22 am

    Try removing the callback function to hide():

    $('form#submit').hide();
    $('div.success').fadeIn();
    

    Also, you have a form and a div with the same id. I suggest you should change one of them, because that might be what was causing your success message not to show.

    Ad@m

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

Sidebar

Related Questions

<script type=text/javascript> function testing() { $.ajax({ type: POST, url: testing.php, data: call=+$(#abc).val(), success: function(msg){
look at this code, <head> <meta http-equiv=Content-Type content=text/html; charset=utf-8 /> <script> function change() {
New Google Analytics code looks like one below: <script type=text/javascript> var _gaq = _gaq
I have this simple jQuery code $(document).ready(function() { $('#test').attr('value','hello world'); $('#test1').text('hello world'); }); And
I have a jQuery script: $.ajax({ url: /scripts/secure/development/ajax.asp, type: POST, dataType: text, data: cmd=addresses,
I'm attempting to select all <script type=text/html> tags in a page. I use <script>
Debugging one of my projects I noticed another developer had changed the $(document).ready() function
Why does $(document).ready(function() not work in the following example? If I take it out,
I was wondering if anyone here had some experience writing this type of script
I am calling a service that return JSON data. Script: $.ajax({ type: "POST", url:

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.