JavaScript-For help, why did I write this paragraph without an animated effect?

Source: Internet
Author: User

Ajax request address, over there successfully returned 1, failed to return 0

What I want to do is, if successful, this class thing called Shan will shrink up and then delete.

But I write this, why not animation? Direct three seconds later, the brush is gone, the implementation success is successful, but no animation effect is why AH?

Thank you, expert advice

Should be high people's request, now special on the complete code, thank you for your advice
Below is a picture of where the class is located

Reply content:

Ajax request address, over there successfully returned 1, failed to return 0

What I want to do is, if successful, this class thing called Shan will shrink up and then delete.

But I write this, why not animation? Direct three seconds later, the brush is gone, the implementation success is successful, but no animation effect is why AH?

Thank you, expert advice

Should be high people's request, now special on the complete code, thank you for your advice
Below is a picture of where the class is located

The code is not complete, I guess the problem is Shan this thing.

The following problems are found:
1.volist seems to be the label in the thinkphp, when I took your example code alone, I found that the middle TR,TD could not parse correctly into the DOM.
That's what Shan is taking []

2.slideUp before I did not use the memory, test to find you if you use TD, you need to give him a height, his effect is to go up and down in the middle of the retraction, only to the inside content of the height of the font is stopped, and then execute the callback.

You look at yourself and deal with it.

That's slideUp the pot.

Hey, this is not science, can not be the code full point

Shan this target element may define a styleheight:100px!important

!importantImproved style precedence, so dynamic modification values for jquery are height not valid

First, the animation hides the timer disappears. I've been writing this before, and I'm going to disappear.

Thanks, I've had this problem, too.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.