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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:42:28+00:00 2026-05-27T13:42:28+00:00

Disclaimer : I’m new to web development. Scenario : I’m making an event based

  • 0

Disclaimer: I’m new to web development.

Scenario: I’m making an event based calendar using CodeIgniter. It works great on a desktop/tablet sized window, and I’ve made a mobile version using Foundation 2.0 by Zurb. It looks great, but there’s a problem I’m facing.

Problem: In the mobile version, when the calendar generates, I’m needing to hide the <ul>s (that display the events in the desktop version) in the mobile version. Then I need to be able to call the <ul>s when the day_listings (which are the date numbers on the calendar) are selected/clicked/etc.

Here is how the calendar class generates a date and its events:

<td>
   <span class="day_listing">7</span>
      <ul class="event_list">
         <li class="event_type" id="26">Event 1</li>
         <li class="event_type" id="27">Event 2</li>
         <li class="event_type" id="28">Event 3</li>
         <li class="event_type" id="29">Event 4</li>
         <li class="event_type" id="30">Event 5</li>
      </ul>
</td>

Here is the code that I am trying to work with:

{cal_cell_content}
   <span class="day_listing">{day}</span><ul class="event_list">{content}</ul>
{/cal_cell_content}

{cal_cell_content_today}
   <span class="today_day_listing">{day}</span><ul class="event_list">{content}</ul>
{/cal_cell_content_today}

Note: This is what you need to work with.

Question: What method(s) do I need to use (e.g. CSS/JavaScript/PHP/etc.) to hide the <ul>s properly when the calendar class generates, and to call them when selected/clicked/etc. on the day_listings?

Thank you so much for all of your help! Below are the resources I’m using that you can reference if you’re having trouble knowing what I’m talking about:

  • CodeIgniter
  • Foundation
  • 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-27T13:42:29+00:00Added an answer on May 27, 2026 at 1:42 pm
    (function($) {
        var isMobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));  
        if (isMobile) {
            $('.event_list').hide(); // setting display:none; on all .event_list <ul> elements
    
            // attach click event to the <span class="day_listing"> elements
            $('.day_listing').click(function() {
                var $eventList = $(this).sibling('.event_list');
    
                $('.event_list').hide(); // again hide all possibly shown ones before opening the selected one
    
                $eventList.show(); // setting display:block on sibling <ul> of clicked <span>
            });
        }
    
    })(jQuery);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Disclaimer : I'm new to web development. Scenario : I've built an application using
Disclaimer: super new to rails. I'm using Rails 3.2 Anyways, I'm trying to create
Disclaimer: I am very new to iOS development. Please excuse the possible stupidity of
Disclaimer: I'm fairly new to python! If I want all the lines of a
Disclaimer: I have no experience using YUI at all. I was wondering how the
Disclaimer : I haven't done web programming for ages and am not even sure
Disclaimer: I'm new to unit testing and just getting my feet wet. That being
Disclaimer: I'm new to most of this I just downloaded virtualbox yesterday and installed
Disclaimer: I am new to python and django but have Drupal programming experience. I'm
[DISCLAIMER: My development machine is running OS X Tiger, so my question and experiences

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.