社交分享插件phonegap分享价值

时间:2015-01-08 21:46:51

标签: javascript html forms cordova social-networking

我想从textarea输入值分享文本。

这是我的代码:

<textarea type="text" id="source"   tabindex="1" name="source" placeholder="Text to be translated" ></textarea>             

<textarea id="results_body" onfocus="ok=1" cols="100" rows="6" style="height:10%;" ></textarea>

<button onclick="window.plugins.socialsharing.share('textarea value')>share only</button>

1 个答案:

答案 0 :(得分:0)

如果您只想将文本区域值设置为当前的'textarea value',则可以将其替换为

document.getElementById('source').value

就像

share(document.getElementById('source').value)
相关问题