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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:48:31+00:00 2026-05-15T18:48:31+00:00

My php code: for($i = 1; $i < 22; $i++) { echo ‘<div id=number

  • 0

My php code:

for($i = 1; $i < 22; $i++) {

    echo '<div id="number" style="display:none">'.$i.'</div>';

}

My jquery code:

$('#number').each(function() {

    $(this).slideDown("slow");  

})

What’s wrong here? I want to achieve effect when all numbers, each after another would appear. I mean, first of all slides down number 1, after him number 2 and so on. And now only slides down number 1 and after him nothing happens although I use jquery each. Thank you.

  • 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-15T18:48:31+00:00Added an answer on May 15, 2026 at 6:48 pm

    First, your PHP needs a change, it’s rendering invalid HTML, so this:

    for($i = 1; $i < 22; $i++) {
      echo '<div id="number" style="display:none">'.$i.'</div>';
    }
    

    Need to be something like this (or remove the id completely if it’s not needed):

    for($i = 1; $i < 22; $i++) {
      echo '<div id="number'.$i.'" class="number" style="display:none">'.$i.'</div>';
    }
    

    Then your jQuery should be something like this:

    $('.number').each(function(i) {
      $(this).delay(600*i).slideDown("slow");  
    });
    

    You can view a demo here

    This will show the first immediately, the second 600ms later (speed “slow” = 600ms), the third after 1200ms, etc, so they’ll happen one after the other. All we’re doing is using .delay() and passing the index of the element in the set times the animation duration, so they occur in order.

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

Sidebar

Related Questions

This is my php code: echo '<div class=code rel=$url>$title</div> <div class=tip>Copy and open site</div>';
I have the following php code: echo <div style='float:left;'>; echo <table>; echo <tr>; echo
PHP code: echo date(c); //out put like this 2012-06-19T20:37:44+05:30 echo date(d M, Y); //out
I have created a PHP code to echo the following div <div id=main_catsel> <select
Consider the following php code used for HTML output: echo <div id='logo2'> <a href='if(checkLanguage())
For example… This PHP code <?php echo '<html>'; echo '<body>'; echo '<h1>Header One</h1>'; echo
I have a line of php code that looks like this: echo <script>$('#edit_errors').html('<h3><em>Please Correct
this is my entire PHP code: <?php if(empty($_POST['selid'])) {echo no value selected; } else
Currently I have this code: <?php echo '<meta name=robots content=noindex>'; $arr = json_decode(file_get_contents(http://media1.clubpenguin.com/play/en/web_service/game_configs/ paper_items.json),true);
My code is somewhat like this: <?php if($_REQUEST['post']) { $title=$_REQUEST['title']; $body=$_REQUEST['body']; echo $title.$body; }

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.