slideDown, slideUp not working in jQuery

后端 未结 2 342
囚心锁ツ
囚心锁ツ 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:57

    Check this demo jsFiddle

    JQuery

    $('tr').not(':first').children('td').wrapInner('
    '); $('select').on('change',function(){ if($(this).val()=='Others') { $('td > div').slideDown(2000, function() { $(this).parent().slideDown(2000); }); } else { $('td > div').slideUp(1000, function() { $(this).parent().slideUp(); }); } });

提交回复
热议问题