0

以下の関数に従って、完了/未完了のアイテムを to do リストに並べ替える Jquery 関数があります。

$('.sort').click(function(){
    var _t = $(this);
    $('.sort').removeClass('active');
    $(this).addClass('active');

    if (_t.hasClass('showall')) {
        $('li.todo').show();
    }
    else if (_t.hasClass('complete')) {
        $('li.todo').show();
        $('li.todo').filter(function(){
            return !!$(this).find('span.uncheck_box').length;
        }).hide();
    }
    else if (_t.hasClass('incomplete')) {
        $('li.todo').show();
        $('li.todo').filter(function(){
            return !!$(this).find('span.check_box').length;
        }).hide();
    }

これを使用して、ワードプレスで完了したアイテムの数を取得して表示するにはどうすればよいですか。助けてください。

ありがとう。

4

0 に答える 0