slideDown, slideUp not working in jQuery

后端 未结 2 338
囚心锁ツ
囚心锁ツ 2021-01-16 09:28

Hi Friends slideDown and slideUp function are not working with my code. It appears the hidden row without slideDown effect PLease help guys you can chekc my code below or

2条回答
  •  别那么骄傲
    2021-01-16 09:49

    You can not slide table rows, as you can't manipulate the height of them. jQuery's animation relies upon the element having height and width.

    Inline elements do not have these dimensions set or settable, so animations must make them block-level elements.It's probably better to just use regular, non-animated, hide and show for such elements.

    You can also use fadeIn and fadeOut. Demo

提交回复
热议问题