How to Use slideDown (or show) function on a table row?

后端 未结 21 2739
清歌不尽
清歌不尽 2020-11-22 09:03

I\'m trying to add a row to a table and have that row slide into view, however the slidedown function seems to be adding a display:block style to the table row which messes

21条回答
  •  情书的邮戳
    2020-11-22 09:48

    http://jsfiddle.net/PvwfK/136/

    $(function () {
    $(".table01 td").on("click", function () {
        var $rows = $('.content01');
        if ($(".content01:first").is(":hidden")) {
            $("#header01").text("▲ Customer Details");
            $(".content01:first").slideDown();
        } else {
            $("#header01").text("▼ Customer Details");
            $(".content01:first").slideUp();
        }
    });
    

    });

    提交回复
    热议问题
    A/C ID : 3000/A01
    A/C ID : 3000/A01
    A/C ID : 3000/A01