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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:13:19+00:00 2026-05-28T07:13:19+00:00

In my view <ul> <li id=list> <table cellpadding=0 cellspacing=0 width=100% class=grid-table08 id=table1> <tbody> <tr><td><img

  • 0

In my view

<ul>
<li id="list">
<table cellpadding="0" cellspacing="0" width="100%" class="grid-table08" id="table1">
<tbody>
<tr><td><img src="../../Content/Images/downarrow.gif" title="Hide Details" class="hide">
</td></tr>

<tr><td align="left" valign="top" width="15" nowrap="nowrap">
Hii good morning
</td>
<tr>
</table>
</li>

<li>
<table cellpadding="0" cellspacing="0" width="100%" class="grid-table08" id="table1">
<tbody>
<tr><td><img src="../../Content/Images/downarrow.gif" title="Hide Details"  class="hide">
</td></tr>

<tr><td align="left" valign="top" width="15" nowrap="nowrap">
Hii good evening
</td>
<tr>
</table>
</li>

</ul>

There are total 10 li when i click the image with id hide i need to hide the particular li

my script as follows

 <script type="text/javascript">
$(function () {

    $(".hide").live("click", function () {

       $(".hide").closest("li").hide("slow");


    });

});

but its not working anyone pls help me

  • 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-28T07:13:20+00:00Added an answer on May 28, 2026 at 7:13 am

    Your img tags has an ID=”hide” instead of CLASS=”hide”.

    WRONG:  <img src="../../Content/Images/downarrow.gif" title="Hide Details" id="hide"> 
    GOOD:   <img src="../../Content/Images/downarrow.gif" title="Hide Details" class="hide"> 
    
    $(".hide") - this one selects all elements with class="hide"
    

    UPDATE:

    Also, you have multiple LI tags with the same ID=”list”: <li id="list">
    You have to use a class: <li class="list">

    The difference between an ID and a class is that an ID can be used to identify one element, whereas a class can be used to identify more than one.

    SOLUTION:

    <li class="list"> 
    <table cellpadding="0" cellspacing="0" width="100%" class="grid-table08" id="table1"> 
    <tbody> 
    <tr><td><img src="../../Content/Images/downarrow.gif" title="Hide Details" class="hide"> 
    </td></tr> 
    
    <tr><td align="left" valign="top" width="15" nowrap="nowrap"> 
    Hii good morning 
    </td> 
    <tr> 
    </table> 
    </li> 
    
    <li class="list"> 
    <table cellpadding="0" cellspacing="0" width="100%" class="grid-table08" id="table1"> 
    <tbody> 
    <tr><td><img src="../../Content/Images/downarrow.gif" title="Hide Details" class="hide"> 
    </td></tr> 
    
    <tr><td align="left" valign="top" width="15" nowrap="nowrap"> 
    Hii good evening 
    </td> 
    <tr> 
    </table> 
    </li> 
    
    </ul> 
    

    and

    $(function () {  
        $(".hide").live("click", function () {  
            $(this).parents("li.list:first").hide("slow");  
        });  
    }); 
    

    Try the demo here: http://jsfiddle.net/RtXn9/

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

Sidebar

Related Questions

<form action= method=post id=SaveIndicationsExportForm> <table cellspacing=0 cellpadding=0 id=hover style=float: left;> <tbody> <tr> <td class=hoverButtonLeft
From the docs: A plain-style table view is an unbroken list; a grouped table
My plan is to display a list of items alphabetically in a table view
I have used a list view that uses a grid view in WPF. I
i have 2 views and both are table views 1st view list is there,
When I view table Invoice Check Groupings in list or table model, all records
I have a table view that has a list videos. When I click on
My app contains 1 list view, data source is 1 sqlite table, when i
My database have 12 values i use the table layout with list view but
i am new in iphone development, i am using table view to list name

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.