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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:44:34+00:00 2026-05-11T01:44:34+00:00

There has to be a simple explanation for this. I have a parent <div>

  • 0

There has to be a simple explanation for this.

I have a parent <div> tag containing a number of child divs that need to be hidden depending on their class. Problem is, I can’t even seem to get a handle to my parent div. What on earth is the problem here? I’m going out of my gourd.

The jQuery code (snippet) looks like this:

$(function() {     $('#dasummary').children().hide(); 

The offending <div> section and all its content is as follows:

<asp:ListView ID='lvLedger' runat='server' DataSourceID='ldsLedger'>     <LayoutTemplate>         <h2>Current Day Activity Summary</h2>         <div id='#dasummary'>             <div id='itemPlaceholder' runat='server' />         </div>     </LayoutTemplate>     <ItemTemplate>         <div id='toggleRow' runat='server' class='group'>             <asp:Image ID='imgToggle' runat='server'                  ImageUrl='~/App_Themes/SunDIAL/images/maximize.png'                 ImageAlign='Left' />             <%# Eval('Key') %> (<%# Eval('Count') %> entries)         </div>          <!-- Add nested ListView control for individual items here -->         <asp:ListView ID='lvItems' runat='server' DataSource='<%# Eval('Tasks') %>'>             <LayoutTemplate>                 <div class='activity_summary'>                     <table>                         <thead>                             <tr>                                 <th class='first' />                                 <th>Day</th>                                 <th>Job</th>                                 <th>Batch</th>                                 <th>Duration</th>                             </tr>                         </thead>                         <tbody>                             <tr id='itemPlaceholder' runat='server' />                         </tbody>                     </table>                 </div>             </LayoutTemplate>             <ItemTemplate>                 <tr id='item' runat='server' class='itemRow'>                     <td class='first' />                     <td>                         <h4>                             <a><%# Eval('Day') %></a>                         </h4>                      </td>                     <td><%# Eval('Project') %></td>                     <td><%# Eval('Name')%></td>                     <td><%# Eval('Hours') %>:<%# Eval('Minutes','{0:00}') %></td>                 </tr>             </ItemTemplate>         </asp:ListView>      </ItemTemplate> </asp:ListView> 

The rendered HTML looks (as far as I can see) just fine. Let me know if you want the whole thing; here’s the important bit:

<div id='#dasummary'>          <div id='ctl00_ContentPlaceHolder1_dashboardFrame_ctl00_ActiveDayLedger1_lvLedger_ctrl0_toggleRow' class='group'>             <img id='ctl00_ContentPlaceHolder1_dashboardFrame_ctl00_ActiveDayLedger1_lvLedger_ctrl0_imgToggle' src='App_Themes/SunDIAL/images/maximize.png' align='left' style='border-width:0px;' />             Wednesday (2 entries)         </div>           <!-- Add nested ListView control for individual items here -->                  <div class='activity_summary'> 

There has to be a reason I’m failing at such a simple operation. Can you spot it?

  • 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. 2026-05-11T01:44:35+00:00Added an answer on May 11, 2026 at 1:44 am

    The id of your div is wrong. In the html it must be dasummary, not #dasummary, so you can grab it by jQuery with $('#dasummary')

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

Sidebar

Ask A Question

Stats

  • Questions 101k
  • Answers 101k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer When adding an installshield object in an installshield installer, the… May 11, 2026 at 8:02 pm
  • Editorial Team
    Editorial Team added an answer double seconds = (currentTime - startTime).TotalSeconds; May 11, 2026 at 8:02 pm
  • Editorial Team
    Editorial Team added an answer You could use IsNetworkAlive(). Although technically it doesn't check link… May 11, 2026 at 8:02 pm

Related Questions

So I've got various reports that consist of a DataSet rendered in a Tablix...
Is it absolutely necessary to use "arrows" to show association between an actor and
I have a situation I'm trying to cope with involving my company's SVN server.
I've looked at this explanation on Wikipedia , specifically the C++ sample, and fail

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.