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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:38:01+00:00 2026-06-01T02:38:01+00:00

My scenario is as follows. I have 7 tabs (one for each day) using

  • 0

My scenario is as follows. I have 7 tabs (one for each day) using bootstrap. I would like to have all 7 days worth of information loaded upon pageload.

<ul class='nav nav-tbs'>
  <li><a id='monday'>Monday</a></li>
  <li><a id='tuesday'>Tuesday</a></li>
  <li><a id='wednesday'>Wednesday</a></li>
  <li><a id='thursday'>Thursday</a></li>
  <li><a id='friday'>Friday</a></li>
  <li><a id='saturday'>Saturday</a></li>
  <li><a id='sunday'>Sunday</a></li>
</ul>

Idealy, upon clicking a days tab you’re only shown that days information. Each ‘daily page’ is fairly complex.

<div class='row'>
  <div class='span12'>
    <legend>Breakfast</legend>
  </div>
</div>

<div class='row'>
  <div class='span5 bfood'>
    <h3>{{ bname }}</h3>
    <img src='{{bimg }}'>
    <ul>
      {% for ing in bing %}
      <li>{{ ing }}</li>
      {% endfor %}
    </ul>
  </div>
  <div class='span6'>
    <div class='well'>
      <form>
        {{ csrf_token }}
        <h2>Doesn't sound good?</h2>
        <p>
        <h3>Breakfast Food:</h3>
        <input type='text' value='{{ bfood }}' id='bfood'>
        </p>
        <p>
        <h3>Breakfast Required:</h3>
        {% for breq in br %}
        <div class='input-append'>
          <input type='text' name='br' value='{{ breq }}'>
          <button class='btn btn-danger rmv'><i class='icon-minus'></i></button>
        </div>
        {% endfor %}
        <button class='btn btn-success add' id='br'><i class='icon-plus'></i></button>
        </p>
        <p>
        <h3>Breakfast Forbidden:</h3>
        {% for bfor in bf %}
        {% if bfor != '' %}
        <div class='input-append'>
          <input type='text' name='bf' value='{{ bfor }}'>
          <button class='btn btn-danger rmv'><i class='icon-minus'></i></button>
        </div>
        {% endif %}
        {% endfor %}
        <button class='btn btn-success add' id='bf'><i class='icon-plus'></i></button>
        </p>
        <button class='btn new-recipe' id='b'>Try again</button>
        <div id='result'></div>
      </form>
    </div>
  </div>
</div>
<div class='row'>
  <div class='span12'>
    <legend>Lunch</legend>
  </div>
</div>
<div class='row'>
  <div class='span5 lfood'>
    <h3>{{ lname }}</h3>
    <img src='{{ limg }}'>
    <ul>
      {% for ing in ling %}
      <li>{{ ing }}</li>
      {% endfor %}
    </ul>
  </div>
  <div class='span6'>
    <div class='well'>
      <form>
        {{ csrf_token }}
        <h2>Doesn't sound good?</h2>
        <p>
        <h3>Lunch Food:</h3>
        <input type='text' value='{{ lfood }}' id='lfood'>
        </p>
        <p>
        <h3>Lunch Required:</h3>
        {% for lreq in lr %}
        <div class='input-append'>
          <input type='text' name='lr' value='{{ lreq }}'>
          <button class='btn btn-danger rmv'><i class='icon-minus'></i></button>
        </div>
        {% endfor %}
        <button class='btn btn-success add' id='lr'><i class='icon-plus'></i></button>
        </p>
        <p>
        <h3>Lunch Forbidden:</h3>
        {% for lfor in lf %}
        {% if lfor != '' %}
        <div class='input-append'>
          <input type='text' name='lf' value='{{ lfor }}'>
          <button class='btn btn-danger rmv'><i class='icon-minus'></i></button>
        </div>
        {% endif %}
        {% endfor %}
        <button class='btn btn-success add' id='lf'><i class='icon-plus'></i></button>
        </p>
        <button class='btn new-recipe' id='l'>Try again</button>
      </form>
    </div>
  </div>
</div>
<div class='row'>
  <div class='span12'>
    <legend>Dinner</legend>
  </div>
</div>
<div class='row'>
  <div class='span5 dfood'>
    <h3>{{ dname }}</h3>
    <img src='{{ dimg }}'>
    <ul>
      {% for ing in ding %}
      <li>{{ ing }}</li>
      {% endfor %}
    </ul>
  </div>
  <div class='span6'>
    <div class='well'>
      <form>
        {{ csrf_token }}
        <h2>Doesn't sound good?</h2>
        <p>
        <h3>Dinner Food:</h3>
        <input type='text' value='{{ dfood }}' id='dfood'>
        </p>
        <p>
        <h3>Dinner Required:</h3>
        {% for dreq in dr %}
        <div class='input-append'>
          <input type='text' name='dr' value='{{ dreq }}'>
          <button class='btn btn-danger rmv'><i class='icon-minus'></i></button>
        </div>
        {% endfor %}
        <button class='btn btn-success add' id='dr'><i class='icon-plus'></i></button>
        </p>
        <p>
        <h3>Dinner Forbidden:</h3>
        {% for dfor in df %}
        {% if dfor != '' %}
        <div class='input-append'>
          <input type='text' name='df' value='{{ dfor }}'>
          <button class='btn btn-danger rmv'><i class='icon-minus'></i></button>
        </div>
        {% endif %}
        {% endfor %}
        <button class='btn btn-success add' id='df'><i class='icon-plus'></i></button>
        </p>
        <button class='btn new-recipe' id='d'>Try again</button>
        <div id='result'></div>
      </form>
    </div>
  </div>
</div>

What would be the best strategy to hide/show each of the above? As a side note, I’d also like to reduce the complexity of the ‘single’ page, as it’s rather long and has a lot of repeat stuff.

  • 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-06-01T02:38:02+00:00Added an answer on June 1, 2026 at 2:38 am

    Wrap each bunch of day code in an element, like…

    <div id="section_monday">
      //all code for monday
    </div>
    

    then use JQuery like so…

    $(".nav nav-tbs").find("a").click(function(e){
       e.preventDefault();
    
       var id = "section_" + $(this).attr("id");
    
       $("#" + id).toggle();//will turn sections on/off with each click
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The scenario I am using LINQ is as follows: I have a method that
The scenario is as follows. We have 2 servers; one 'old' running old webshop
User scenario is like follows. My application has list of companies. Each company has
I have a scenario as follows: I have one Windows 2003 server that has
My problem scenario is as follows: I have one GridviewA bound to a objectdatasourceA.
The scenario is like this. I have a rich:tabPanel with about 5 tabs. On
The architecture for this scenario is as follows: I have a table of items
The scenario is as follows, I have 3 objects (i simplified the names) named
My scenario is as follows: I have a client-server application. The client is deployed
I have an sql scenario as follows which I have been trying to improve.

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.