  })
                               
    $('body').on('click','.compareBtn',function(){
        var variant_id=$(this).closest('.compare').find('.variantid').val()
        var my_token='{{ csrf_token }}'
        $.ajax({
            method:"POST",
            url:"/variant/compare/",
            context:this,
            data:{
                "csrfmiddlewaretoken": my_token,
                'variant_id':variant_id
                },
                success: function(data){
                    $("#my_compar