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

Related Questions

I have a WCF contract with circular references. For a simple parent-child relationship, the
I'm sure there is good explanation for this. I'm guessing it has something to
I wonder why no browser out there has such simple but essential feature. Am
There has to be something utterly simple I'm overlooking here, but for the life
There has to be a way to do this, I was googling information but
There has got to be an answer to this, but I am a total
This is probably going to be a really simple explanation, but I'm going to
We have a query that is currently killing our database and I know there
How do a I create a validator, which has these simple rules. An expression
There has been some talk of Website performance monitoring tools and services on stackoverflow,

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.