animate delete from list jquery

Greetings,
I have a UL, that I am using to mimic a table.  Inside each <LI> i have a delete button.
What I want to do, is load 5 or 6 items, show the top three, then when the delete button is selected, i want that item to disappear, then the rest of the list moves up.

Am I asking the right quesiton here?  I know it's an ajax thing, but my question resolves around the animation.

Any recommendations would be greatly appreciated.
Thanks
LVL 9
Evan CutlerVolunteer Chief Information OfficerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

leakim971PluritechnicianCommented:
where's you' current code?
0
GaryCommented:
Some of the logic would be
$("#delete-button").click(function(){
     $(this).parent("li").slideUp()
     $(this).parent("li").remove()
     if($("ul li:eq(2)").length>0){$("ul li:eq(2)").fadeIn()}
})

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Evan CutlerVolunteer Chief Information OfficerAuthor Commented:
Thanks so much GaryC123,

This got me started.  I am now capable of putting something together.  I can now put something together.  If I have any more questions, I 'll come back.

Thanks again.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.