خرید بک لینک

Vote count: 0

At page I have many button active state of type. I bind to the event click and check how many button have active status. But when I click at first button I get zero.

$(".btn-quote").on("click", function (e) {
    var totalActiveQiote = $(".btn-quote.active").length;

    if (totalActiveQiote > 0) {
        console.log("active");
    } else {
        console.log("deactive");
    }
});

What I should do to fix this?

asked 46 secs ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 12 تير 1395 ساعت: 9:07

صفحه بندی