I am adding social share option on the page using Add This.
I have added the code to my phtml file and added the js script in the head, which is working fine.
Also, I have an option to filter data on the select category on the same page. In that case, data is coming from the controller using ajax. everything is working perfectly except social share option.
After selecting the category from dropdown the data filters using ajax, but social share option is not coming.
I think script needs to be the load again for the social share buttons.
social share button add this code:
<div class="addthis_inline_share_toolbox" data-url="<?php echo $baseURL_l.'video#'.$url?>" data-title="<?php echo $video->getVideoTitle(); ?>" addthis:media="<?php echo 'https://img.youtube.com/vi/'.$video->getVideoUrl() ?>/0.jpg" ></div>