How to dynamically load sharein share link?

I upload content dynamically to my website, and I need to create social media buttons after the ajax function, when I get the necessary information. I found great solutions for facebook and twitter, but I can not find a working solution for linkedin. I hope my question is clear ... Thanks in advance for the smart answers!

EDIT: I found a solution.

var din ='<script id="holderLink" type="IN/Share" data-url="http://kitchenprague.com/news.php?id='+val.id+'" data-counter="right"></script>'; $(".linkedinDetail").html(din); IN.parse(); 
+6
source share
1 answer
 var din ='<script id="holderLink" type="IN/Share" data-url="http://kitchenprague.com/news.php?id='+val.id+'" data-counter="right"></script>'; $(".linkedinDetail").html(din); IN.parse(); 
+2
source

Source: https://habr.com/ru/post/913349/


All Articles