JQuery Error in theme for .live is not a function [closed]

If you asking what is the replacement for .live() it’s .on()`, for enabling event handling for dynamically added elements and that’s how you would use it.

$(document).on("click","#test-element",function() {});

so for your code.

$('body').on('click', '.top_add_card', function(event){

    var parent = $(this).parent();
    var $this_btn = $(this);
    var $target_block = $this_btn.siblings('div');
    
    event.preventDefault();
    event.stopPropagation();
    
    if(parent.hasClass('active') && $target_block.hasClass('hm_active_prep')){
        $target_block.fadeOut(function(){
            parent.removeClass('active');
        }
    }
});

This would work for dynamically adding elements too. because thats the main purpose of using .on(). read more about it here. https://api.jquery.com/on/