1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved script not working

Discussion in 'Free Divi Community Forum' started by Elshir, Feb 18, 2020.

  1. Elshir

    Elshir Member

    why this script isn't working when i added to head of my post?
    $('.like__btn').on('click', function(){
    if (!$(this).hasClass('like__btn--disabled')) {
    updated_likes = parseInt($('.like__btn span').html()) + 1;
    $('.like__btn span').html(updated_likes);
    }
    $(this).attr('disabled', true).addClass('tada');
    });
     
    1. PRO MEMBER PERKS Divi Block Pro - Easy-to-use drag & drop interface to mix & match 456+ premade Divi blocks & export as json file:Learn More
  2. Elshir

    Elshir Member

    i've fix that