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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:45:18+00:00 2026-05-23T15:45:18+00:00

This ‘click’ trigger: <li class=booking><a href=#page_7>Book Me</a></li> Here’s the jQuery: <script type=’text/javascript’> $(‘.booking’).click(function(){ $(‘#svc_panel’)fadeIn(function(){

  • 0

This ‘click’ trigger:

<li class="booking"><a href="#page_7">Book Me</a></li>

Here’s the jQuery:

<script type='text/javascript'>
     $('.booking').click(function(){
     $('#svc_panel')fadeIn(function(){
     $('#date_panel,#time_panel,#confirm_panel')hide();
     });
  });


          $('.date_button').click(function(){
                $('#date_panel').fadeIn(function(){
                $('#svc_panel,#time_panel,#confirm_panel,').hide();
                });
          });

          $('.time_button').click(function(){
                $('#time_panel').fadeIn(function(){
                      $('#svc_panel,#date_panel,#confirm_panel').hide();
                });
          });

          $('.confirm_button').click(function(){
                $('#confirm').fadeIn(function(){
                      $('#csvc_panel,#date_panel,#time_panel').hide();
                });
          });

    });
    </script>

and the HTML:

<div id="svc_panel">

                    <table style="margin-left:30px;width:100%;text-align:left;">

                        <tr style="height:25px;">

                            <th style="width:500px;font-weight:bold;font-size:14px;">Service</th>

                            <th style="width:100px;font-weight:bold;font-size:14px;">Duration</th>

                            <th style="width:100px;font-weight:bold;font-size:14px;">Cost</th>

                        </tr>

                        <tr>

                            <td><a href="#" class="date_button">First Service</a></td>

                            <td>60 Minutes</td>

                            <td>$100</td>

                        </tr>

                        <tr>

                            <td><a href="#" class="date_button">Second Service</a></td>

                            <td>30 Minutes</td>

                            <td>$60</td>

                        </tr>

                        <tr>

                            <td><a href="#" class="date_button">Third Service</a></td>

                            <td>90 Minutes</td>

                            <td>$140</td>

                        </tr>

                </table>

                </div>

                <div id="date_panel">

                    <p>user picks date: <input id="datepicker" class="time_button" type="text"></p>

                </div>

                <div id="time_panel">

                    <div>user picks time on: <span id="target"></span></div>

                    <table>

                        <tr>

                            <td class="time_button"><a href="#">11:30 am</a></td>

                        </tr>

                        <tr>

                            <td class="time_button"><a href="#">12:30 pm</a></td>

                        </tr>

                        <tr>

                            <td class="time_button"><a href="#">2:00 pm</a></td>

                        </tr>

                    </table>

                </div>

                <div id="confirm_panel">

                You've chosen (service) on (date) at (time). Is this correct? <a href="#" class="confirm_button">Yes</a>

                </div>

How do I get these divs to show consecutively on click?

  • 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-23T15:45:19+00:00Added an answer on May 23, 2026 at 3:45 pm

    Typos are your enemy.

    $(document).ready(function(){
    
    $('#svc_panel,#date_panel,#time_panel,#confirm_panel').hide();
    
    $(".booking").click(function(){
     $('#svc_panel').fadeIn(function(){
     $('#date_panel,#time_panel,#confirm_panel').hide();
    
     });
    });
    
    
          $(".date_button").click(function(){
                $('#date_panel').fadeIn(function(){
                $('#svc_panel,#time_panel,#confirm_panel,').hide();
                });
          });
    
          $('.time_button').click(function(){
                $('#time_panel').fadeIn(function(){
                      $('#svc_panel,#date_panel,#confirm_panel').hide();
                });
          });
    
          $('.confirm_button').click(function(){
                $('#confirm_panel').fadeIn(function(){
                      $('#svc_panel,#date_panel,#time_panel').hide();
                });
          });
    
    });
    

    This is working code. Enjoy.

    <li class="booking"><a href="#page_7">Book Me</a></li>
    
    
    <div id="svc_panel">
    
                    <table style="margin-left:30px;width:100%;text-align:left;">
    
                        <tr style="height:25px;">
    
                            <th style="width:500px;font-weight:bold;font-size:14px;">Service</th>
    
                            <th style="width:100px;font-weight:bold;font-size:14px;">Duration</th>
    
                            <th style="width:100px;font-weight:bold;font-size:14px;">Cost</th>
    
                        </tr>
    
                        <tr>
    
                            <td><a href="#" class="date_button">First Service</a></td>
    
                            <td>60 Minutes</td>
    
                            <td>$100</td>
    
                        </tr>
    
                        <tr>
    
                            <td><a href="#" class="date_button">Second Service</a></td>
    
                            <td>30 Minutes</td>
    
                            <td>$60</td>
    
                        </tr>
    
                        <tr>
    
                            <td><a href="#" class="date_button">Third Service</a></td>
    
                            <td>90 Minutes</td>
    
                            <td>$140</td>
    
                        </tr>
    
                </table>
    
                </div>
    
                <div id="date_panel">
    
                    <p>user picks date: <input id="datepicker" class="time_button" type="text"></p>
    
                </div>
    
                <div id="time_panel">
    
                    <div>user picks time on: <span id="target"></span></div>
    
                    <table>
    
                        <tr>
    
                            <td class="confirm_button"><a href="#">11:30 am</a></td>
    
                        </tr>
    
                        <tr>
    
                            <td class="confirm_button"><a href="#">12:30 pm</a></td>
    
                        </tr>
    
                        <tr>
    
                            <td class="confirm_button"><a href="#">2:00 pm</a></td>
    
                        </tr>
    
                    </table>
    
                </div>
    
                <div id="confirm_panel">
    
                You've chosen (service) on (date) at (time). Is this correct? <a href="#" class="confirm_button">Yes</a>
    
                </div>
    

    http://jsfiddle.net/Incubator/sfhsS/16/

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

Sidebar

Related Questions

This is my first post here and I wanted to get some input from
This is about as beginner as it gets regarding AJAX, but here it goes.
This is driving me insane! Here's the code: public static void main(String[] strings) {
This is beyond both making sense and my control. That being said here is
this is what i have so far: type u = {str : string} //some
This is essentially what I want to do: public abstract class Uniform<T> { public
This is actually two questions rolled into one. Is there a particular type of
This is a quickly cooked up script, but I am having some difficulty due
This is a bit of a long shot, but if anyone can figure it
This is starting to vex me. I recently decided to clear out my FTP,

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.