Calling data from a div to share on social media using cordova social sharing plugin
<p>I've got the cordova social sharing plugin which allows me to share info on social media to my friends. But what i've noticed is the info shared cannot be dynamic and it always have to be static.
What i want to achieve its there's an info i load in a div called <code>"data"</code> with ajax and i want that information loaded in the div <code>data</code> to be the one shared on the social media</p>

<pre><code>&lt;button class="invite" data-role="none" onclick="window.plugins.socialsharing.share('Static info')"&gt;Share Message with a Friend&lt;/button&gt;
</code></pre>

<p>I'm using this plugin for the social sharing</p>

<pre><code>https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git
</code></pre>