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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T14:41:00+00:00 2026-06-16T14:41:00+00:00

So I am looking for a way to remove all list items with one

  • 0

So I am looking for a way to remove all list items with one click, not that hard, but to give it some nice effect I wanted to let the first slideup and remove this, once the first is remove do the same for the second list item and so on, until every list item is removed.

  • 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-16T14:41:01+00:00Added an answer on June 16, 2026 at 2:41 pm

    Following removes all items in list sequentially at one time:

    $('button').click(function() {
        var $first = $('#list li:first')
        removeItem($first);
    })
    
    
    function removeItem($el) {
        $el.slideUp(function() {
    
            var $next = $el.next()
            if ($next.length) {
                removeItem($next)
            }
            $(this).remove()
        })
    }
    

    DEMO: http://jsfiddle.net/UzPy5/2/

    To remove individually can use

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

Sidebar

Related Questions

I'm looking for nice pythonic way of filtering one list by another stop-list, but
I'm looking for an elegant way to remove all files in a folder that
I am looking for a way to quickly remove items from a C# List<T>
I am looking for a way to remove all <table*> <tr*> <td*> </td> </tr>
I am looking for a way to remove some characters from the end of
I'm looking for a way to list all updated files in the remote master
I have a dropdown list with more than one thousand items. Once I click
I'm looking for a convenient way to use jQuery to remove all classes from
Looking to trigger an action but not sure what the best way to go
I'm looking for a way to remove lines within multiple csv files, in bash

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.