1

I have the following Jquery code that insert a html after a specific <TR>

$("#imgDiminui_" + Id).closest("tr").after(row);

Works fine, but I would like to add a animation to this.

I try the following

$("#imgDiminui_" + Id).closest("tr").after(row).animate({
                      height: "18px",
                      opacity: 0.25
                  , 500); 

Works fine,

But when I try

$("#imgDiminui_" + Id).closest("tr").after(row).slideDown(1000);

Nothing happened. Somebody can help me to put the slideDown effect ?

1
  • 2
    The element needs to be initially hidden before it can slide down, add a hide() before the slideDown(). Commented Jul 31, 2012 at 20:24

1 Answer 1

1

Try

$("#imgDiminui_" + Id).closest("tr").after(row).hide().slideDown(1000);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.