Javascript 社交分享插件phonegap分享价值

Javascript 社交分享插件phonegap分享价值,javascript,html,forms,cordova,social-networking,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输入值中的文本

这是我的代码:

<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>

如果您只想将文本区域值获取到当前具有“textarea value”的位置,则可以将其替换为

document.getElementById('source').value

share(document.getElementById('source').value)

问题是什么?如何获取文本区域值?如果是,哪个文本区域?谢谢sanfor先生,问题解决了谢谢