用jq激活动态按钮分页

时间:2018-09-21 11:04:55

标签: php pagination

单击时如何更改分页动态按钮的颜色...

format c:
$(function () {
    $('.paginationUrl').click(function (sendPageCount) {
        sendPageCount.preventDefault();
        $link = $(this);
        var urlsend = $link.attr('value');
        $('#allUserTbl').html('<tr colspan="5" style="text-align: center"><td><img src="../../assets/panel/images/ajax-loader.gif" alt=""></td></tr>')
        $.ajax({
            url: urlsend,
            method: 'get',
            success: function (response) {
                response = $.parseJSON(response);
                if (response.status == 'success') {
                    $('#allUserTbl').html(response.html);
                }
                // console.log(response);
            }
        });
    })
});

单击它时如何更改分页动态按钮的颜色...

0 个答案:

没有答案